Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get email reply on rails app from email server

I need to implement messaging feature. When I send message to any user from my rails app then it also goes to users email. But what I need to implement if user who got the email make reply from gmail,yahoo..etc then the reply should also come into rails app. could anyone guide me some way.. so I can search it on google.

For Example:

If I send email to user from this email "[email protected]" and user replied on [email protected] which I set Reply-To in header. Then I need user's reply in my rails application so that I can add this user's reply into my messaging thread. By this feature which I want to implement User do not need to login in my application to do message, user can do message on current conversation via email reply also.

like image 659
PythonDev Avatar asked Jan 09 '14 09:01

PythonDev


People also ask

How do I send an email to ROR?

Go to the config folder of your emails project and open environment. rb file and add the following line at the bottom of this file. It tells ActionMailer that you want to use the SMTP server. You can also set it to be :sendmail if you are using a Unix-based operating system such as Mac OS X or Linux.


1 Answers

Since you tagged the question SendGrid, I'm assuming you're using it. You can use SendGrid's Inbound Parse Webhook to handle parsing incoming messages.

We also have a recent tutorial that goes through using the webhook in a rails app: http://sendgrid.com/blog/two-hacking-santas-present-rails-the-inbound-parse-webhook/

like image 137
bwest Avatar answered Sep 28 '22 09:09

bwest