2

I have to send automatic emails with Return Receipt (aka "acknowledgement of receipt"), to have the confirmation that the receiver have actually received and read the email. The confirmation is a simple email sent to a specified address (the "Disposition-Notification-To" address, given in the email header).

Do you know if there is an easy way to do that with Rails (ActionMailer)? or with Ruby perhaps (TMail, Net/SMTP)?

Thanks in advance for your help.

Trevoke
  • 4,115
  • 1
  • 27
  • 48
Flackou
  • 3,631
  • 4
  • 27
  • 24

1 Answers1

0

You set your headers in your mailer def block like so:

headers['Return-Receipt-To'] = 'email@example.com'
headers['Disposition-Notification-To'] = 'email@example.com'
headers['X-Confirm-Reading-To'] = 'email@example.com'

Note that these trigger a dialogue in some, but not all email clients. Also, it is not a guarantee that the receiver actually has read and understood the email.