[Zope] Problems with invalid email id's and sendmail tag

Daniel.Weber@SEMATECH.Org Daniel.Weber@SEMATECH.Org
Thu, 06 Apr 2000 07:51:27 -0500


our local smtp server apparently returns an error when an invalid local address
is sent via the sendmail tag.  This is not a problem when there is only one
email address on the To: line, but I have several forms that mail to multiple
recipients, so the error bombs the entire mail.  Note that sending an invalid
email address to a remote server works fine and I get the reaction I want - an
email to the From: account stating there was an invalid address so I can clean
it up.

Is this an smtp issue or is there some way to clean it up?  Is the sendmail code
in mailhost.py the place to work on it?

If any mail gurus have any suggestions, I'd appreciate it.  Right now I'm
writing an external method to parse the returned error, get the invalid address,
strip it from the To: list, mark the email id as bad and try to resend the
message.  It's a rather long, awful looking piece of work....