|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
cfmailparam
I just found out (with no help from the Adobe documentation) that you can get an email generated via CF mail to return a read receipt by adding the following to the mail content.Robert Harrison 08/22/12 01:29 P Robert this isn't a CF feature as much as it s a W3c mail standard andBrian Thornton 08/22/12 01:35 P Short answer: It's not going to work reliably.Ben Forta 08/22/12 01:36 P This may be off topic - but how exactly did the docs fail you?Raymond Camden 08/22/12 01:37 P > I just found out (with no help from the Adobe documentation) that you can get an email generated via CF mail to return aDave Watts 08/22/12 01:45 P OK. I get it. It's not an Adobe thing, but it would have been helpful if the Adobe documentation said something more. It says:Robert Harrison 08/22/12 02:07 P So, I've found two headers I can use:Robert Harrison 08/22/12 02:15 P > So, I've found two headers I can use:Dave Watts 08/22/12 08:11 P As others have said, non of these headers are 'standard', and theirAzadi Saryev 08/22/12 09:51 P I just found out (with no help from the Adobe documentation) that you can get an email generated via CF mail to return a read receipt by adding the following to the mail content. <cfmailparam name="Disposition-Notification-To" value="me@domain.com"> This is the Message Disposition Notification - the command that requests the user to confirm they have read the mail. What I really want to do is confirm that the mail has been delivered. That should be something like: <cfmailparam name="Delivery-Notification-To" value="me@domain.com"> or <cfmailparam name="Delivery-Status-To" value="me@domain.com"> or <cfmailparam name="Status-Notification-To" value="me@domain.com"> Does anyone know what the correct attribute is for Delivery Status Notifications? I can't find that documented anywhere. Thanks Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_ Robert this isn't a CF feature as much as it s a W3c mail standard and is based on the mail provider ie exchange. ----- Excess quoted text cut - see Original Post for more ----- Short answer: It's not going to work reliably. Longer answer: You can request notification, but there is no guarantee that servers or clients will provide it. You may have more luck determining that the message was delivered to a specific mailbox on the server depending on the server used, but determining that the user actually got it and read it is close to impossible to do reliably. There are tricks and workarounds, like embedding web bugs, but even these are blocked by many clients (including Outlook) and are generally considered to be poor e-behavior. Bottom line, not doable using SMTP mail. I just found out (with no help from the Adobe documentation) that you can get an email generated via CF mail to return a read receipt by adding the following to the mail content. <cfmailparam name="Disposition-Notification-To" value="me@domain.com"> This is the Message Disposition Notification - the command that requests the user to confirm they have read the mail. What I really want to do is confirm that the mail has been delivered. That should be something like: <cfmailparam name="Delivery-Notification-To" value="me@domain.com"> or <cfmailparam name="Delivery-Status-To" value="me@domain.com"> or <cfmailparam name="Status-Notification-To" value="me@domain.com"> Does anyone know what the correct attribute is for Delivery Status Notifications? I can't find that documented anywhere. Thanks Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_ This may be off topic - but how exactly did the docs fail you? cfmailparam is documented, is it not? http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c15.html Or is your argument that an example isn't provided? > > I just found out (with no help from the Adobe documentation) that you can get an email generated via CF mail to return a read receipt by adding the following to the mail content. > > <cfmailparam name="Disposition-Notification-To" value="me@domain.com"> This is the Message Disposition Notification - the command that requests the user to confirm they have read the mail. > > What I really want to do is confirm that the mail has been delivered. > I just found out (with no help from the Adobe documentation) that you can get an email generated via CF mail to return a > read receipt by adding the following to the mail content. > > <cfmailparam name="Disposition-Notification-To" value="me@domain.com"> > This is the Message Disposition Notification - the command that requests the user to confirm they have read the mail. Don't take this the wrong way, but why would this be listed in the Adobe documentation? It has nothing to do with CFMAIL really - you can send any acceptable SMTP header with CFMAILPARAM. ----- Excess quoted text cut - see Original Post for more ----- I don't think that will be likely to work in any case. These are not built into core SMTP functionality (neither are read receipts) so it's up to the recipient server to either do these things or not do them. Also, there are different "standards" out there for this. Finally, the most common standard for Delivery Status Notification (DSN) doesn't rely on a separate header - if I recall correctly, it becomes part of the RCPT TO command, like this: RCPT TO: dwatts@figleaf.com NOTIFY=SUCCESS,FAILURE,DELAY ORCPT=rfc822;dwatts@figleaf.com Here's the relevant RFC: http://tools.ietf.org/html/rfc1891 Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. OK. I get it. It's not an Adobe thing, but it would have been helpful if the Adobe documentation said something more. It says: Name; Required if you do not specify file attribute; Name of header. Case-insensitive. Mutually exclusive with file attribute. Where it says "Name of header", that seems a bit ambiguous to me. If it's clear to you, great. It doesn't leave me with any more understanding of what I can put there. Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_wi So, I've found two headers I can use: <cfmailparam name="Disposition-Notification-To" value="name@domain.com"> <cfmailparam name="Return-Receipt-To" value="name@domain.com " > The first one seems to work effectively. The second seems less effective. Both, however, require the user to respond. On Outlook I have options to "Request a deliver receipt" and "Request a Read Receipt". The cfmailparam above appear to be equivalent to "Request a Read Receipt", which asks the user to send notification. The second Outlook option "Request a Delivery Receipt" will send me a confirmation that either the email has been delivered, or at least that it was relayed. Is there an equivalent command I can use to emulate that function? Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_ ----- Excess quoted text cut - see Original Post for more ----- I don't know. Why not send a message from Outlook to, say, a Gmail account using these, and see whether they're reflected in message headers? That said, a lot of this kind of stuff is proprietary, and doesn't work in the wide-open world of SMTP. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. As others have said, non of these headers are 'standard', and their implementation is dependent on mail server and mail client settings on the receiving end. MS uses 'Return-Receipt-To' header to request a DSN from the mail server. Try and see if that one works for you. Alternatively, you can always specify "failto" cfmail attribute - delivery failure notifications will be sent to the address you provide. No failure notice = mail delivered. Azadi On Thu, Aug 23, 2012 at 2:29 AM, Robert Harrison <robert@austin-williams.com> wrote: ----- Excess quoted text cut - see Original Post for more -----
|
May 24, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||