Receiving Email in rails

37 views
Skip to first unread message

Aqib Hameed

unread,
Sep 10, 2017, 2:28:14 AM9/10/17
to Ruby on Rails: Talk
I want to design a software which has multiple emails against the brands, e.g Brand1 has email ema...@gmail.comema...@gmail.com, and Brand2 has emails ema...@gmail.comema...@gmail.com. So Customer send their query by email on ema...@gmail.com etc. So system  reads all emails against the brands on which customer send the emails.So which Gem is best in rails to reads the emails from multiple mailing box without forwarding the emails??? 

Ben Edwards

unread,
Sep 11, 2017, 7:31:04 PM9/11/17
to Ruby on Rails: Talk
Think you need to have a look at ruby solution, which you can fold into rails, or use stand alone to populate a DB.  type something like 'ruby read emails -gmail' into your favourite search engine.  Not everything is solved by finding the right gem, sometimes you have to code stuff yourself.

On Sunday, September 10, 2017 at 7:28:14 AM UTC+1, Aqib Hameed wrote:
I want to design a software which has multiple emails against the brands, e.g Brand1 has email ema...@gmail.comemail2@gmail.com, and Brand2 has emails ema...@gmail.comemail4...@gmail.com. So Customer send their query by email on ema...@gmail.com etc. So system  reads all emails against the brands on which customer send the emails.So which Gem is best in rails to reads the emails from multiple mailing box without forwarding the emails??? 

Christophe

unread,
Sep 12, 2017, 4:19:24 AM9/12/17
to Ruby on Rails: Talk
It would be simpler to use a specific domain or subdomain and use a 3rd party service that can handle that for you like mailgun (or something like that).
Ex: 

It's really easy to deploy, nothing to maintain (they handle that for you), you have just to handle a post request on your side.

so you can think your system in 2 ways:
- you have a single incoming email for all your customers (like : he...@mydomain.com) and when you receive an email you can check if (against your user DB) if you know (or not) the sender (it's simple 1 address for all customers, but it requires the customer to declare all emails source).
- you can generate a specific email for each of your customer (like : john_sm...@mydomain.com) and when you receive an email, you know which customer to affect this email (but all of your customers needs to register/search/learn the generated email, so you have to onboard your users).



Le dimanche 10 septembre 2017 08:28:14 UTC+2, Aqib Hameed a écrit :
I want to design a software which has multiple emails against the brands, e.g Brand1 has email ema...@gmail.comemail2@gmail.com, and Brand2 has emails ema...@gmail.comemail4...@gmail.com. So Customer send their query by email on ema...@gmail.com etc. So system  reads all emails against the brands on which customer send the emails.So which Gem is best in rails to reads the emails from multiple mailing box without forwarding the emails??? 
Reply all
Reply to author
Forward
0 new messages