* a delivery backend.
*
* @author Marc Groot Koerkamp
- * @copyright 1999-2014 The SquirrelMail Project Team
+ * @copyright 1999-2018 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
//
if ($reply_id) {
global $imapConnection, $username, $imapServerAddress,
- $imapPort, $mailbox;
+ $imapPort, $imap_stream_options, $mailbox;
// try our best to use an existing IMAP handle
//
} else {
$close_imap_stream = TRUE;
- $my_imap_stream = sqimap_login($username, FALSE,
- $imapServerAddress, $imapPort, 0);
+ $my_imap_stream = sqimap_login($username, FALSE, $imapServerAddress,
+ $imapPort, 0, $imap_stream_options);
}
sqimap_mailbox_select($my_imap_stream, $mailbox);
* @param string $pass password to log into the SMTP server with
* @param boolean $authpop whether or not to use POP-before-SMTP authorization
* @param string $pop_host host name or IP to connect to for POP-before-SMTP authorization
+ * @param array $stream_options Stream context options, see config_local.example.php for more details (OPTIONAL)
*
* @return handle $stream file handle resource to SMTP stream
*/
- function initStream($message, $domain, $length=0, $host='', $port='', $user='', $pass='', $authpop=false, $pop_host='') {
+ function initStream($message, $domain, $length=0, $host='', $port='', $user='', $pass='', $authpop=false, $pop_host='', $stream_options=array()) {
return $stream;
}