diff options
author | rub <rub@piwigo.org> | 2009-08-26 20:14:57 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2009-08-26 20:14:57 +0000 |
commit | 3c3c084156d0be2588278abb2cd383ece1c42c73 (patch) | |
tree | 4544cb669e2f83ff7c7142202a26a13bc813c1bc /include/class_smtp_mail.inc.php | |
parent | 21510eb4c6a8c4a527fcfc7b9de84072d70a81df (diff) |
Bug 1145: Mails are sent in double
git-svn-id: http://piwigo.org/svn/trunk@3798 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/class_smtp_mail.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/class_smtp_mail.inc.php b/include/class_smtp_mail.inc.php index b26ef1ed4..93521c81e 100644 --- a/include/class_smtp_mail.inc.php +++ b/include/class_smtp_mail.inc.php @@ -132,6 +132,7 @@ class smtp_mail $this->server_write('MAIL FROM:<'.$this->email_webmaster.'>'."\r\n"); $this->server_parse('250'); + // Add "To:" on headers if there are included if ((preg_match('/^\s*to\s*:.*/mi', $headers) === 0) and !empty($to)) { $to_header = 'To:'.implode(',', array_map(create_function('$email','return "<".$email.">";'), explode(',', $to))); |