From 18e206dd1373a321595d9500bc47e137867d17b4 Mon Sep 17 00:00:00 2001 From: fidian Date: Wed, 7 Mar 2001 18:03:44 +0000 Subject: [PATCH] * Fixed weird addressbook problem over SMTP git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1171 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 36b7751a..9d7bce9e 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -47,6 +47,10 @@ $ret .= '<'.$result['email'].'>'; $array[$i] = $ret; } + else + { + $array[$i] = '<' . $array[$i] . '>'; + } } return $array; } @@ -202,7 +206,7 @@ $header .= "Date: $date\r\n"; $header .= "Subject: $subject\r\n"; $header .= "From: $from\r\n"; - $header .= "To: $to_list \r\n"; // Who it's TO + $header .= "To: $to_list\r\n"; // Who it's TO /* Insert headers from the $more_headers array */ if(is_array($more_headers)) { @@ -356,7 +360,7 @@ /** send who the recipients are */ for ($i = 0; $i < count($to); $i++) { - fputs($smtpConnection, "RCPT TO:<$to[$i]>\r\n"); + fputs($smtpConnection, "RCPT TO: $to[$i]\r\n"); $tmp = fgets($smtpConnection, 1024); errorCheck($tmp, $smtpConnection); } -- 2.25.1