Fix for calls to Deliver_SMTP->initStream() having the wrong number of args.
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 5 Nov 2002 21:17:15 +0000 (21:17 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 5 Nov 2002 21:17:15 +0000 (21:17 +0000)
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
src/read_body.php

index 69fab1d..03f9124 100644 (file)
@@ -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;
index a85361f..cfab22a 100644 (file)
@@ -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) {