I am having an issue with a user’s email address.
The email address contains an apostrophe in their name. EG: User.O’Something@somewhere.com
The email widget accepts the email address, as it is a valid email address. However when I try and reset the users password I get an error because the email address is apparently invalid.
I hacked this out by commenting out the email address validation and again sending the user their password caused a validation failure, this time in PHPMailer. So I inserted a “return TRUE” into the address validation function. Finally I got an SMTP error which reveals what is occuring.
SMTP Error: Invalid recipient syntax User.O& #039;Something@somewhere.com
I checked the email_addresses db table and the email is stored correctly without the unicode entity.
Something somewhere is HTML/URL encoding the email addresses when it shouldn’t be.
Any ideas?
Thanks,