aboutsummaryrefslogtreecommitdiffstats
path: root/include/class_smtp_mail.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/class_smtp_mail.inc.php')
-rw-r--r--include/class_smtp_mail.inc.php1
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)));