When using drupal_mail to send an email, I get errors when display names (not emails) contain apostrophes in the "To" field.
For example, referring to drupal_mail() documentation, email addresses like "Another User <anotheruser@example.com>
" are valid. "Another User <anotheruser@example.com>
" validates perfectly, but "Another O'Neil <anotheroneil@example.com>
" fails.
Do I need to change the last name to ONeil instead of O'Neil, or can escape it somehow?
I have also tried ""Another O'Neil" <anotheroneil@example.com>
" without success.
- Setup: Ubuntu 11.04 LTS
- Drupal Version: 7.x
- Mail Service: Amazon SES
- Additional Mail Modules: "HTML Mail" and "Mail System"