error 501, Invalid Address. Check email
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Singing & Dancing |
New
|
Undecided
|
Unassigned |
Bug Description
We had the problem that when we sent a newsletter, some users received more than once and others not receive any.
We looked at the logs, and we saw that when we sent the newsletter it gave an 501 error (Invalid address) and it stopped sending to the other users.
Then, after a few minutes it sent it again resulting in the same error, and thus into a loop until we stopped it. This happen because there was malformed addresses that the email checker of singing & dancing could not detect, as <email address hidden> (in latest versions of S&D, it is detected) or <email address hidden><email address hidden>.
I've been checking the code and I saw that S&D uses its own email checker, and not what Plone uses.
As a solution, I modified the file collective.
Before:
if not re.match(
raise InvalidEmailAddress
Now:
from Products.
...
if not re.match(
raise InvalidEmailAddress
checkEmailAdd
Can you post a full traceback of that 501 error?
Also, which version of zope.sendmail are you using?