From address not properly quoted. Causes errors if comma in site name.

Created on 8 June 2016, over 8 years ago
Updated 6 February 2023, over 1 year ago

1. Install a D8 site
2. Add a site name that contains a comma

When sending a mail message the from address is sent through a RFC 822 compatible mailbox parser and will split on the comma since it is not within quotes.

Email will fail to send because the from email address got mangled.

Solution
Quote the "comment" section of the from email address. See RFC spec http://www.faqs.org/rfcs/rfc822.html Appendix A.1.3

πŸ› Bug report
Status

Closed: duplicate

Version

8.6 ⚰️

Component
MailΒ  β†’

Last updated 16 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States arknoll

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    The need for a test with a comma in it needed to be brought over to the other issue before this was closed as a duplicate.

    Exact same problem causing fatal errors on site due to πŸ› Uncaught RfcComplianceException when email From name contains a comma Fixed

    That one does have the test, so nothing to do here although i found this issue 20 minutes before finding the other, so, leaving the link here for future me and the note about getting the experienced problem cases into tests for everybody.

Production build 0.71.5 2024