I am writing a rails application that sends emails when certain actions occur, users can then reply to these emails and the system needs to match the reply email to the original email sent to the user.
It seems like the best way to do this is to save the message id header field when sending messages, is this possible in ActionMailer? I can then retrieve the references header from replies and match the messages.
If this is not possible are there any alternate solutions?
With Rails 3, this is possible:
message = Mailer.welcome(@user).deliver
message.message_id #=> 4ccc56d19...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With