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

From email addresses fail without a space before angle bracket

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.3.alpha
    • Component/s: None
    • Labels:
      None

      Description

      If I send an email via "Search Individual, select to send email" and then select a template to send. When I select a "From Email" address, it will fail to send, with an internal error saying that the email format is invalid.

      This was caused by lack of a space between the two parts of the defined "from email".

      Thus the first one below failed, but adding a space (second example) allowed it to work.
      "AHYMSIN Office"<ahymsin@gmail.com>
      "AHYMSIN Office" <ahymsin@gmail.com>

      My suggestions is to fix both the piece of code that parses and sends the email (to make it more robust, and to guard against any manually entered email addresses in the future), and also to fix the editor that adds and edits "From Email" addresses to ensure one and only one space between the two parts of the email: "name" <name@name.com>

      I have no idea how many places send email and might be affected.

        Attachments

          Activity

            People

            • Assignee:
              neha.saraph Neha Kulkarni
              Reporter:
              tabletguy Stephan L Hodges
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: