Successful delivery | 250 Ok <Message ID> | <Message ID> is a string of characters that Amazon SES uses to uniquely identify a message. |
I figured that before I go and start writing some cfmail wrapper I would double check to make sure that my assumption is correct and that it in fact not currently possible to handle a success response from cfmail.
Igal Sapir
Lucee Core Developer
Lucee.org
--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/b91f2539-e121-4088-9811-43412100c4ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
we were talking a while back about adding callback functions, or event handlers, like onComplete and onError to Tasks (cfmail runs as a Task so that would apply to it).
but that of course will only help you if the SMTP server you're connecting to will reject the email.
if you want to handle bounces that take place after the SMTP session ends then you should get a mailbox that can handle sub-addressing (see https://en.wikipedia.org/wiki/Email_address#Sub-addressing ). then when you send the email, give each message an ID for reference, and specify the "failTo" attribute in cfmail. so your cfmail will look like:
<cfmail to="#recipient#" from="#sender#" subject="Test #getTickCount()#" failTo="bounces+...@yourdomain.com">