I am using PEAR Mail to send emails, and I found that if the “From:” field is something like From: Dragoş <email@example.com>, PEAR returns an error:
Validation failed for: Dragoş <email@example.com>
But, if I remove the ş, PEAR returns true and sends email.
I tried to search on Google and StackOverflow for valid characters, but seems I have no luck here.
Does anyone know what are the valid characters for the display name in From field?
Also, is there any way to “encode” these chars to be allowed on this field? I use PHP.
Thank you!
Nuno
In MIME you have to use only ASCII encoded characters.
In order to pass non-ASCII chars, you have to use Word encoding.
Copied from the linked article:
The same can be applied to the “name” part (not the email) of the “From” and “To” MIME fields.