David Goodwin 16 years ago
parent 11c39af699
commit 8eafea4617

@ -1298,7 +1298,7 @@ function to64 ($v, $n)
// smtp_mail // smtp_mail
// Action: Sends email to new account. // Action: Sends email to new account.
// Call: smtp_mail (string To, string From, string Data) // Call: smtp_mail (string To, string From, string Data)
// // TODO: Replace this with something decent like PEAR::Mail or Zend_Mail.
function smtp_mail ($to, $from, $data) function smtp_mail ($to, $from, $data)
{ {
global $CONF; global $CONF;
@ -1317,6 +1317,7 @@ function smtp_mail ($to, $from, $data)
} }
else else
{ {
$res = smtp_get_response($fh);
fputs ($fh, "EHLO $smtp_server\r\n"); fputs ($fh, "EHLO $smtp_server\r\n");
$res = smtp_get_response($fh); $res = smtp_get_response($fh);
fputs ($fh, "MAIL FROM:<$from>\r\n"); fputs ($fh, "MAIL FROM:<$from>\r\n");

Loading…
Cancel
Save