Selaa lähdekoodia

Fix for calls to Deliver_SMTP->initStream() having the wrong number of args.
This should fix authenticated smtp.

tassium 23 vuotta sitten
vanhempi
commit
935caa76ef
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      src/compose.php
  2. 1 1
      src/read_body.php

+ 1 - 1
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;

+ 1 - 1
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) {