Ruby on Rails Thursday, September 7, 2017

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?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fc2d5b46-2445-4642-8c04-0f9a61703daa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment