Stream options were forgot here
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 12 Sep 2018 14:05:13 +0000 (14:05 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 12 Sep 2018 14:05:13 +0000 (14:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14774 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/compose.php

index 6d5e307..e56244b 100644 (file)
@@ -131,7 +131,7 @@ function sq_send_mail($to, $subject, $body, $from, $cc='', $bcc='', $message='')
       require_once(SM_PATH . 'class/deliver/Deliver_SMTP.class.php');
       $deliver = new Deliver_SMTP();
       global $smtpServerAddress, $smtpPort, $pop_before_smtp,
-             $domain, $pop_before_smtp_host;
+             $domain, $pop_before_smtp_host, $smtp_stream_options;
 
       $authPop = (isset($pop_before_smtp) && $pop_before_smtp) ? true : false;
       if (empty($pop_before_smtp_host)) $pop_before_smtp_host = $smtpServerAddress;
@@ -139,7 +139,7 @@ function sq_send_mail($to, $subject, $body, $from, $cc='', $bcc='', $message='')
       $pass = '';
       get_smtp_user($user, $pass);
       $stream = $deliver->initStream($message,$domain,0,
-                $smtpServerAddress, $smtpPort, $user, $pass, $authPop, $pop_before_smtp_host);
+                $smtpServerAddress, $smtpPort, $user, $pass, $authPop, $pop_before_smtp_host, $smtp_stream_options);
    } else {
       require_once(SM_PATH . 'class/deliver/Deliver_SendMail.class.php');
       global $sendmail_path, $sendmail_args;