Skip to main content
WolfShade
Legend
February 6, 2013
Question

Intermittent CFMAIL issue

  • February 6, 2013
  • 1 reply
  • 852 views

Hello, everyone.

I've got an intermittent CFMAIL issue that has me perplexed.

I'm using CFMAIL to email notifications of changes made to records in a database.  In the form that is used to make these changes there is a field that has email addresses of developers who need to be notified of these changes.  These are a comma-delimited list of email addresses (which, according to CF9 cfmail documentation on adobe.com, is the correct way of sending to more than one address.)

Some of the records will send the email, update the timestamp on the "mailsent.log", append the new email notification to "mailsent.log", and the email is received by the person(s) to whom it was sent.

Other records, however, will (apparently) send the email, will NOT update the timestamp on "mailsent.log", but WILL append a successfully sent entry to "mailsent.log" (even though the timestamp was not updated), and the email is NOT received by the person(s) to whom it was sent.  In these cases, the timestamp of the mailsent.log will not match the timestamp of the latest entry in the mailsent.log.

I've been able to determine one record that will always successfully complete the process, and one record that will always append a success entry (not altering the log timestamp) but the email will never reach its destination.  I am not seeing anything in any of the data that could break the transport of the email (it's all plain text, no special characters.)

Any thoughts on this?

Thank you,

^_^

This topic has been closed for replies.

1 reply

WolfShade
WolfShadeAuthor
Legend
February 6, 2013

UPDATE: I just now discovered something that is most likely causing this issue: more than one email address.

If the TO= of CFMAIL is "user1.address@domain.com", the email goes out without any issues.

If the TO= of CFMAIL is "user1.address@domain.com,user2.address@domain.com", then the email is not received, the timestamp of the log file is not updated (even though the success message is appended to the log).

According to the docs for CF9 CFMAIL, the TO= field should be either a single email address -OR- a comma-delimited list of email addresses (or a query column that will be treated like a comma-delimited list).

What could be causing this?


Thanks,

^_^

Inspiring
February 6, 2013

We use comma delimited lists all the time.  They work.  What happens if you write a cfmail tag to two recipients with nothing else going on?

WolfShade
WolfShadeAuthor
Legend
February 6, 2013

You mean like <cfmail to="user1.address@domain.com, user2.address@domain.com"></cfmail> with nothing else, no attributes?  Or just an empty body?

^_^