Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5640

Unnecessary quotes added to email addresses in CiviMail mailings

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.9, 3.0, 3.0.1, 3.0.2, 3.0.3, 3.1.4
    • Fix Version/s: 3.1.5
    • Component/s: CiviMail
    • Labels:
      None

      Description

      An extra set of quotes are added to the name portion of email addresses in the "To" and "From" fields of the mail headers during CiviMail mailings.

      The contents of the header fields end up as follows: "\"John Smith\"" <jsmith@email.com>
      The proper format should simply be: "John Smith" <jsmith@email.com>

      The extra set of quotes are unnecessary and in fact cause problems in some email readers.

      The quotes are added in CRM/Mailing/BAO/Mailing.php. The fix is to first check if the name field already contains quotes and not add the additional quotes if it's already quoted. This applies when setting $verp['reply'] (line 885), $headers['From'] (line 910), and $recipient (line 1054)

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              marty Marty Wright
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: