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

CiviMail: non-US-ASCII From: names can cause email validation error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: CiviMail
    • Labels:
      None

      Description

      Cf. CRM-4631 but this time with CiviMail.

      To replicate:
      (1) At From Email Address Options, configure a From Email Address with a non-US-ASCII character in the name, e.g. (email disguised):
      "Test RegiĆ³n" <davej@my.dom>
      (2) Set up a mailing using this From address and send a test mail.

      Result:

      Dec 01 18:10:11 [info] $Fatal Error Details = Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] =>
      [message] => Validation failed for: =?utf-8?Q?"CiviCRM=20Test=20Mailer=20(Test=20Regi=C3=B3n)"=20<dave?= =?utf-8?Q?j@my.dom>?=
      [mode] => 16
      [debug_info] =>
      [type] => PEAR_Error
      [user_info] =>
      [to_string] => [pear_error: message="Validation failed for: =?utf-8?Q?"CiviCRM=20Test=20Mailer=20(Test=20Regi=C3=B3n)"=20<dave?= =?utf-8?Q?j@my.dom>?=" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
      )

      Dec 01 18:10:11 [info] $backTrace = (snip)/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 190
      , handle,
      (snip)/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 912
      (snip)/sites/all/modules/civicrm/packages/PEAR.php, PEAR_Error, 576
      (snip)/sites/all/modules/civicrm/packages/Mail/RFC822.php, raiseError, 198
      (snip)/sites/all/modules/civicrm/packages/Mail.php, parseAddressList, 159
      (snip)/sites/all/modules/civicrm/packages/Mail/smtp.php, prepareHeaders, 258
      (snip)/sites/all/modules/civicrm/CRM/Mailing/BAO/Job.php, send, 363
      (snip)/sites/all/modules/civicrm/CRM/Mailing/BAO/Job.php, deliverGroup, 313
      (snip)/sites/all/modules/civicrm/CRM/Mailing/BAO/Job.php, deliver, 137
      (snip)/sites/all/modules/civicrm/CRM/Mailing/Form/Test.php, runJobs, 255
      , testMail,
      (snip)/sites/all/modules/civicrm/packages/HTML/QuickForm.php, call_user_func, 1591
      (snip)/sites/all/modules/civicrm/CRM/Core/Form.php, validate, 291
      (snip)/sites/all/modules/civicrm/CRM/Core/StateMachine.php, validate, 148
      (snip)/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
      (snip)/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
      (snip)/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
      (snip)/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 249
      (snip)/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 209
      (snip)/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 333
      , civicrm_invoke,
      (snip)/includes/menu.inc, call_user_func_array, 348
      (snip)/index.php, menu_execute_active_handler, 18

      Civi 3.0.2
      Drupal 6.14
      PHP 5.2.11
      Apache 2.2.3
      MySQL 5.0.45

      Dave J

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              davej Dave Jenkins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: