Mailman Gem

9 views
Skip to first unread message

Aqib Hameed

unread,
Sep 7, 2017, 5:19:07 AM9/7/17
to Ruby on Rails: Talk
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: "em...@gmail.com",
   password: "password"
}

Mailman::Application.run do
default do
  puts message.subject
end
end
I want to receive mails from both ema...@gmail.com and ema...@gmail.com which I can then process. Is there a way I can open multiple accounts in a single process of mailman?
Reply all
Reply to author
Forward
0 new messages