coldfusion
…posted by davidjmedlock:
…由 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:
这是使用CFMAIL的一个精妙甚至有用的小窍门。 您是否曾经在Outlook中收到过电子邮件,并在阅读后看到一个小的弹出窗口,说“发件人已请求此邮件的已读回执。 您想现在发送一个吗?” (或者类似的东西……)嗯,完成的方法是使用邮件头,您可以很容易地在ColdFusion中重现它:
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.
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. 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. 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…)
请享用! (也不要给我发送任何已读的收据,我讨厌那些东西……)
翻译自: https://www.sitepoint.com/send-a-read-receipt-through-coldfusion/
coldfusion