markguinn / silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails
31 stars 22 forks source link

$bounceAddress isn't used anywhere in initEmail() #3

Open phillprice opened 10 years ago

phillprice commented 10 years ago
    // Messages with the X-SilverStripeMessageID header can be tracked
    if(isset($customheaders["X-SilverStripeMessageID"]) && defined('BOUNCE_EMAIL')) {
      $bounceAddress = BOUNCE_EMAIL;
      // Get the human name from the from address, if there is one
      if(ereg('^([^<>]+)<([^<>])> *$', $from, $parts)) {
        $bounceAddress = "$parts[1]<$bounceAddress>";
      }
    } else {
      $bounceAddress = $from;
    }