Changeset 3799


Ignore:
Timestamp:
08/26/09 22:17:28 (11 years ago)
Author:
rub
Message:

merge -c3798 from trunk to branch 2.0

Bug 1145: Mails are sent in double

Location:
branches/2.0/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/class_smtp_mail.inc.php

    r3262 r3799  
    133133      $this->server_parse('250'); 
    134134 
     135      // Add "To:" on headers if there are included 
    135136      if ((preg_match('/^\s*to\s*:.*/mi', $headers) === 0) and !empty($to)) 
    136137      { 
  • branches/2.0/include/functions_mail.inc.php

    r3058 r3799  
    609609  if (empty($to)) 
    610610  { 
     611    // Add only when to is empty 
     612    // else mail() add 'To:' on header 
    611613    $headers.= 'To: undisclosed-recipients: ;'."\n"; 
    612   } 
    613   else 
    614   { 
    615     $headers.= 'To: '.$to."\n"; 
    616614  } 
    617615 
Note: See TracChangeset for help on using the changeset viewer.