From 70ce22184a6bab6279631b1f7f43fe98c833f317 Mon Sep 17 00:00:00 2001 From: tassium Date: Tue, 5 Nov 2002 21:17:15 +0000 Subject: [PATCH] Fix for calls to Deliver_SMTP->initStream() having the wrong number of args. This should fix authenticated smtp. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4103 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 2 +- src/read_body.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compose.php b/src/compose.php index 69fab1d2..03f9124e 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1333,7 +1333,7 @@ function deliverMessage($composeMessage, $draft=false) { } $authPop = (isset($pop_before_smtp) && $pop_before_smtp) ? true : false; $stream = $deliver->initStream($composeMessage,$domain,0, - $smtpServerAddress, $smtpPort, $authPop); + $smtpServerAddress, $smtpPort, $user, $pass, $authPop); } elseif (!$draft) { require_once(SM_PATH . 'class/deliver/Deliver_SendMail.class.php'); global $sendmail_path; diff --git a/src/read_body.php b/src/read_body.php index a85361f8..cfab22a3 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -280,7 +280,7 @@ function SendMDN ( $mailbox, $passed_id, $sender, $message, $imapConnection) { } $authPop = (isset($pop_before_smtp) && $pop_before_smtp) ? true : false; $stream = $deliver->initStream($composeMessage,$domain,0, - $smtpServerAddress, $smtpPort, $authPop); + $smtpServerAddress, $smtpPort, $user, $pass, $authPop); } $success = false; if ($stream) { -- 2.25.1