|
Sounds like
you might need to place your <cfmail> tag inside a <cftry>
set, then put some code within the <cfcatch> which will notify
the sender of the problem. This synopsis assumes that your sender's address will be valid too, and does not discuss the broader issue of whether or not your email team has broken any smtp rules here. That's my short answer! Because this seems to me to be more of a generic ColdFusion (or even plain email) issue, you may get more accurate results from another group. FWIW, I've found the precise use of <cftry/catch> to be most important in a batched bulk email processes, or one bad address in a programmer's contrived batch will cause your system to keep attempting the entire batch over and over again, thus sending multiple messages to all the good ones within. Um, so I've heard... Alan K Holden Mario_METCA wrote: --Hi everyone, I have a question and hope that someone could provide me with some assistance. We were notified of a change of email relays with my firm and since the change has taken place we have been experiencing issues with email not being sent.The new email relays have a set of strict rules that are in place for security purposes. What is happening is the if one of the email address is an invalid email (internal to the company) the relay returns an error message (550 user unknown) and then sits and waits for the application to give it instructions on what to do. The CFML code does not respond back to mail relay so the email relay does not send the message. If there are three employees on the email and one is no longer valid, no one gets the email. This is what I was told is happening by the email team: The old relay (appMail) does not perform any validation so when your application connects to it, there aren't any error codes return back to the application. The new relays have controls that were implemented for risk and audit purposes. When your application gets an error response (could be anything but in this case, user unknown) the application doesn't know how to handle the error and closes the connection. Here is the message I see the mail.log: 10/12/09 15:35.38: MailOutFail: [email protected], [email protected]; [email protected]; Subject=Test of email relay; Server=;;smtp-amg-am.hedani.net;25; Size=605 bytes:javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.0 <[email protected]>... No such user I am at a lost as to what to do about this issue. Thanks Mario Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !! |
- [OpenBD] Question about CFMAIL and 550 errors Mario_METCA
- Re: [OpenBD] Question about CFMAIL and 550 errors Alan Holden
