Receive emails from multiple accounts using mailman gem in rails

对着背影说爱祢 提交于 2019-12-13 16:47:33

问题


Is there a way to receive email from multiple accounts in mailman gem? Here is my mailman_server.rb which processes mail from a single account

require "rubygems"
require "mailman"

Mailman.config.pop3 = {
   server: 'pop.gmail.com', port: 995, ssl: true,
   username: "email@gmail.com",
   password: "password"
}

Mailman::Application.run do
default do
  puts message.subject
end
end

I want to receive mails from both email1@gmail.com and email2@gmail.com which I can then process. Is there a way I can open multiple accounts in a single process of mailman?


回答1:


  1. Create 3rd email account
  2. set email forwarding from (email1@gmail.com and email2@gmail.com) to that account
  3. set up mailman )


来源:https://stackoverflow.com/questions/12178349/receive-emails-from-multiple-accounts-using-mailman-gem-in-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!