Hi,
I am using Active mailer to sending Emails,
I want to trace the mail ids which are bounced when i am sending the mails to the user.
Please give your valuable comments guys.
Thanks in Advance.
*HIKKU
Hi,
I am using Active mailer to sending Emails,
I want to trace the mail ids which are bounced when i am sending the mails to the user.
Please give your valuable comments guys.
Thanks in Advance.
*HIKKU
I recently switch to using the email service Postmark, just so I could know about bounced emails better. They have a bounce api and support webhooks. I never could figure out a way to get that information back to my app from the MTA I had running. It is a pay service so it might not work for you, but it has been useful for my project.
One solution is to use unique From-addresses when sending emails. For example when sending email to user with ID 666, use the from address [email protected].
Then setup a script that receives the replies. If the reply is a bounce pull out the msg-id or whatever you need from the mail and store it.
Detecting whether the reply was a bounce or an actual reply from a real user can be tricky, because not all MTAs format the bounce messages properly.
An alternative to Postmark could be MadMimi.
There is a good explanation in Recepie #70 http://www.pragprog.com/titles/fr_rr/rails-recipes
Also take a look at http://blog.gipoo.net/2010/5/26/handling-bounced-emails-in-ruby-on-rails