Question
cfmail "failto" not working with non-existent internal email addresses
We've hard-coded cfmail TO value in many places across many
applications, i.e.
<cfmail to="user1@abc.com;user2@abc.com;user3@abc.com" ...>
Suppose when one of the users (user1,user2, user3) left company and his email address was removed from the MS Exchange server, cfmail would fail saying
A problem occurred when attempting to deliver mail.This exception was caused by: javax.mail.SendFailedException: Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.1.1 User unknown
in the server exception log and cfmail wouldn't report the error to the email address of "failto".
So I'm wondering if it's possible to have cfmail ignore the bad one(s) and continue to send the email? Or is there anything I should do with the Exchange server?
Advice is much appreciated.
<cfmail to="user1@abc.com;user2@abc.com;user3@abc.com" ...>
Suppose when one of the users (user1,user2, user3) left company and his email address was removed from the MS Exchange server, cfmail would fail saying
A problem occurred when attempting to deliver mail.This exception was caused by: javax.mail.SendFailedException: Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.1.1 User unknown
in the server exception log and cfmail wouldn't report the error to the email address of "failto".
So I'm wondering if it's possible to have cfmail ignore the bad one(s) and continue to send the email? Or is there anything I should do with the Exchange server?
Advice is much appreciated.
