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

On a mailing with sendmail, the envelope address is the from, not the return-path

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4
    • Component/s: CiviMail
    • Labels:
      None

      Description

      Can I patch it ?

      in packages/Mail/sendmail.php line 118

      list($from, $text_headers) = $headerElements;

      if (!isset($from))

      { return PEAR::raiseError('No from address given.'); }

      elseif (strpos($from, ' ') !== false ||
      strpos($from, ';') !== false ||
      strpos($from, '&') !== false ||
      strpos($from, '`') !== false)

      { return PEAR::raiseError('From address specified with dangerous characters.'); }

      $from = escapeShellCmd($from);
      $mail = @popen($this->sendmail_path . (!empty($this->sendmail_args) ? ' ' . $this->sendmail_args : '') . " -f$from – $recipients", 'w');

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: