summaryrefslogtreecommitdiffstats
path: root/lib/mail.php
diff options
context:
space:
mode:
authorj-ed <juergen@eisfair.org>2013-01-26 12:09:54 +0100
committerj-ed <juergen@eisfair.org>2013-01-26 12:09:54 +0100
commit93834b78a13814e8b799126285a70f3303d04fea (patch)
treec41f425d08eb6825c5c7d68e9d43d66e89cd81d0 /lib/mail.php
parent4d74738fe750cacd5c7ff40ce4652a8a4d19253c (diff)
downloadnextcloud-server-93834b78a13814e8b799126285a70f3303d04fea.tar.gz
nextcloud-server-93834b78a13814e8b799126285a70f3303d04fea.zip
Update lib/mail.php
added parameter mail_smtpauthtype to set SMTP authentication type.
Diffstat (limited to 'lib/mail.php')
-rw-r--r--lib/mail.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mail.php b/lib/mail.php
index ffc4d01b79f..1bb202ac977 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -38,6 +38,7 @@ class OC_Mail {
$SMTPHOST = OC_Config::getValue( 'mail_smtphost', '127.0.0.1' );
$SMTPPORT = OC_Config::getValue( 'mail_smtpport', 25 );
$SMTPAUTH = OC_Config::getValue( 'mail_smtpauth', false );
+ $SMTPAUTHTYPE = OC_Config::getValue( 'mail_smtpauthtype', 'LOGIN' );
$SMTPUSERNAME = OC_Config::getValue( 'mail_smtpname', '' );
$SMTPPASSWORD = OC_Config::getValue( 'mail_smtppassword', '' );
$SMTPDEBUG = OC_Config::getValue( 'mail_smtpdebug', false );
@@ -62,6 +63,7 @@ class OC_Mail {
$mailo->SMTPAuth = $SMTPAUTH;
$mailo->SMTPDebug = $SMTPDEBUG;
$mailo->SMTPSecure = $SMTPSECURE;
+ $mailo->AuthType = $SMTPAUTHTYPE;
$mailo->Username = $SMTPUSERNAME;
$mailo->Password = $SMTPPASSWORD;
$mailo->Timeout = $SMTPTIMEOUT;