mailman-gem

Receiving and Processing Email: Heroku, Sendgrid, and possibly Mailman

半世苍凉 提交于 2019-12-22 18:47:31
问题 My app creates a unique email for each user, and users send email to that address for processing. Using Sendgrid, I've piped incoming emails to my domain (hosted on Heroku) to an address: site.com/receive_email I use the TO field to determine the user, since the email address is randomly generated. I've experimented using an external script like Mailman, but since I'm hosted on Heroku I'd need to have a worker running full time to keep this process going. Not really looking for that at the

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

Receiving and Processing Email: Heroku, Sendgrid, and possibly Mailman

匆匆过客 提交于 2019-12-06 06:16:17
My app creates a unique email for each user, and users send email to that address for processing. Using Sendgrid, I've piped incoming emails to my domain (hosted on Heroku) to an address: site.com/receive_email I use the TO field to determine the user, since the email address is randomly generated. I've experimented using an external script like Mailman , but since I'm hosted on Heroku I'd need to have a worker running full time to keep this process going. Not really looking for that at the moment for this test app. That leaves processing it as a POST request. I have access to POST hash