Skip to main content
January 8, 2009
Question

Mail Sending status <cfmail>

  • January 8, 2009
  • 4 replies
  • 579 views
hi
I have an Application which send emails using <CFMAIL>, I want to know if the perticular mail has been sent or it's still stuck in the pool coz of some error. simply how can I know whether the mail sent sucessfully.?

Thanx
This topic has been closed for replies.

4 replies

January 9, 2009
hi guys,
thanx for all your replies, I'll be trying them to figure out a good solution to my issue, once i'm succeeded, i'll post my findings in here..

Thanx again
Participating Frequently
January 8, 2009
quote:

Originally posted by: NineCooL
hi
I have an Application which send emails using <CFMAIL>, I want to know if the perticular mail has been sent or it's still stuck in the pool coz of some error. simply how can I know whether the mail sent sucessfully.?

Thanx



The FAILTO parameter will send the message to you if it doesn't actually deliver due to an error, but in order for that to happen it has to get an SMTP-based error message from the recipient mailserver (or the local SMTP daemon if it's a localized error). In short, if for some reason the messages are 'stuck' in the spool the FAILTO parameter won't help at all because the message will never actually 'fail', just be stuck in limbo.

How long will it stay in limbo? Could be until CF realizes the message can't deliver, or it could be forever as it was in the case of old school CF5, where the spool just stopped working for no apparent reason. Nowadays though with CF8 the spool will generally behave as expected and you won't see messages in limbo like this, but just so you know the only real way to be certain what happened to a message is to check the CF spool log for the 'delivered' message and/or search the active queue and undeliverable queue for your message to see what happened to it.

Inspiring
January 8, 2009
Hi,

Ray's "SpoolMail" can do that for you.

Download your copy here : http://spoolmail.riaforge.org/

HTH
Astonished_protector15C3
Participating Frequently
January 8, 2009
Hi NineCooL,

Please add an attribute in the cfmail tag (failto ="test@domain.com") If the mail has not delivered to your to address it will return to your failto (test@domain.com) address