Send a Read Receipt through ColdFusion

We teamed up with SiteGround
To bring you up to 65% off web hosting, plus free access to the entire SitePoint Premium library (worth $99). Get SiteGround + SitePoint Premium Now

…posted by davidjmedlock:

Here’s a nifty, and maybe even useful, little tidbit for using CFMAIL. Have you ever gotten an email in Outlook and seen a little popup window after you read it saying “The sender has requested a read receipt for this message. Would you like to send one now?” (Or something like that…) Well, the way that’s done is with mail headers and you can reproduce that in ColdFusion very easily:


david.medlock@example.com" from="test@example.com" server="mail.0web-hosting.com" subject="test read receipt">
test@example.com">
test@example.com">
This is a test for read receipts.

This works like a charm. It may even be possible to ask the recipient to send a read receipt to someone other than the seller. (I haven’t tried this just yet, but it should work, in theory, since it’s a header independent of the sender’s address…)

Enjoy! (And don’t send me any read receipts, I hate those things…)

We teamed up with SiteGround
To bring you up to 65% off web hosting, plus free access to the entire SitePoint Premium library (worth $99). Get SiteGround + SitePoint Premium Now