2

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?

aash
  • 1,323
  • 1
  • 14
  • 22

1 Answers1

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