Merge pull request #1318 from j-ed/master
added parameter mail_smtpauthtype to set SMTP authentication type.
This commit is contained in:
commit
857b15db37
|
@ -92,6 +92,10 @@ $CONFIG = array(
|
||||||
*/
|
*/
|
||||||
"mail_smtpauth" => false,
|
"mail_smtpauth" => false,
|
||||||
|
|
||||||
|
/* authentication type needed to send mail, depends on mail_smtpmode if this is used
|
||||||
|
* Can be LOGIN (default), PLAIN or NTLM */
|
||||||
|
"mail_smtpauthtype" => "LOGIN",
|
||||||
|
|
||||||
/* Username to use for sendmail mail, depends on mail_smtpauth if this is used */
|
/* Username to use for sendmail mail, depends on mail_smtpauth if this is used */
|
||||||
"mail_smtpname" => "",
|
"mail_smtpname" => "",
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ class OC_Mail {
|
||||||
$SMTPHOST = OC_Config::getValue( 'mail_smtphost', '127.0.0.1' );
|
$SMTPHOST = OC_Config::getValue( 'mail_smtphost', '127.0.0.1' );
|
||||||
$SMTPPORT = OC_Config::getValue( 'mail_smtpport', 25 );
|
$SMTPPORT = OC_Config::getValue( 'mail_smtpport', 25 );
|
||||||
$SMTPAUTH = OC_Config::getValue( 'mail_smtpauth', false );
|
$SMTPAUTH = OC_Config::getValue( 'mail_smtpauth', false );
|
||||||
|
$SMTPAUTHTYPE = OC_Config::getValue( 'mail_smtpauthtype', 'LOGIN' );
|
||||||
$SMTPUSERNAME = OC_Config::getValue( 'mail_smtpname', '' );
|
$SMTPUSERNAME = OC_Config::getValue( 'mail_smtpname', '' );
|
||||||
$SMTPPASSWORD = OC_Config::getValue( 'mail_smtppassword', '' );
|
$SMTPPASSWORD = OC_Config::getValue( 'mail_smtppassword', '' );
|
||||||
$SMTPDEBUG = OC_Config::getValue( 'mail_smtpdebug', false );
|
$SMTPDEBUG = OC_Config::getValue( 'mail_smtpdebug', false );
|
||||||
|
@ -62,6 +63,7 @@ class OC_Mail {
|
||||||
$mailo->SMTPAuth = $SMTPAUTH;
|
$mailo->SMTPAuth = $SMTPAUTH;
|
||||||
$mailo->SMTPDebug = $SMTPDEBUG;
|
$mailo->SMTPDebug = $SMTPDEBUG;
|
||||||
$mailo->SMTPSecure = $SMTPSECURE;
|
$mailo->SMTPSecure = $SMTPSECURE;
|
||||||
|
$mailo->AuthType = $SMTPAUTHTYPE;
|
||||||
$mailo->Username = $SMTPUSERNAME;
|
$mailo->Username = $SMTPUSERNAME;
|
||||||
$mailo->Password = $SMTPPASSWORD;
|
$mailo->Password = $SMTPPASSWORD;
|
||||||
$mailo->Timeout = $SMTPTIMEOUT;
|
$mailo->Timeout = $SMTPTIMEOUT;
|
||||||
|
|
Loading…
Reference in New Issue