Hi,

I get this error when I try to send a newsletter with simplenews and mimemail.

Can somebody help me to fix the problem ?

thanks

zmove

CommentFileSizeAuthor
#1 mimemail.module.patch536 byteszmove

Comments

zmove’s picture

Status: Active » Needs review
StatusFileSize
new536 bytes

I found the problem,

Mimemail don't understand email address format in their full declaration like that : "John Doe"

That result to the message in my precedent post, and the email is not sent.

The solution is too extract the email address from a full email address format using regular expressions.

Here is a patch for the 6.x dev version.

zmove’s picture

Bump, still need opinion about that....

kenorb’s picture

Status: Needs review » Reviewed & tested by the community

This patch worked for me, thanks a lot!
Token supporting realnames.

There is module realname as well, but I haven't tested it.

sgabe’s picture

Title: warning: mail() [function.mail]: SMTP server response: 501 Bad address syntax in [...]l\mimemail.module on line 331. » Bad address syntax on Windows
Status: Reviewed & tested by the community » Closed (duplicate)

Well, the thing is that Windows doesn't support addresses in the form of "John Doe <johndoe@example.com>" for to parameter. We need to handle this somehow, but this is not good enough.

I am marking this as a duplicate of #758922: Use simple address format for PHP mail() on Windows, we shall continue there.