KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to request a read receipt using 4D Internet Commands SMTP suite
PRODUCT: 4D | VERSION: 13.3 | PLATFORM: Mac & Win
Published On: July 11, 2013

Sometimes it is useful to get a 'read receipt' for emails that have been sent. Outlook provides this feature within the Message Tracking options, but really, it is just an email header as described in RFC 3798.

The Message Disposition Notification (MDN) header can be easily added to an email sent from 4D using the SMTP_AddHeader command:

$from_t:="sender@somedomain.com"
$err:=SMTP_AddHeader ($SMTP_ID;"Disposition-Notification-To:";$from_t;1)


RFC 3798 describes this email header as being optional, and as such, some email clients may not support it. Assuming the email client does support it; the email client may be configured to either automatically reject, accept, or prompt for read receipts.

Prompting is the most common configuration. In this configuration, when a user clicks on a message that has this email header, the email client prompts the user to send a read receipt. If the end-user clicks Accept the read receipt is automatically generated and sent.