Email This Post
|
Print This Post
Having spent several hours trying to get this to work, thought I’d share it with the world!
When sending emails from an automated service like RSS:Forward it is common to want the return-path and the reply-to headers to be different.
This lets the receiver of the email reply to the author of the email while bounces are returned to another address which, presumably, updates the list database to ensure that bad email addresses are automatically removed from the list.
Ruby on Rails does not support setting the return path when sending emails using ActionMailer
perform_delivery_sendmail methodMake sure that you configure ActionMailer to use sendmail by adding the following line to your config/environment.rb file.
9a6bc69b7ab8d356b988d8a2acc30834002
Add to the top of your Mailer model so it looks like this…
9a6bc69b7ab8d356b988d8a2acc30834003
This will presumably not work on the MS legacy operating system.
Use the code at your own risk … it works for me
If you have a better solution, please let me know.
RSS feed for comments on this post · TrackBack URI
Leave a reply