Enable SSL support.
This commit is contained in:
parent
cb174b20aa
commit
54339a22ca
|
@ -102,9 +102,13 @@ class Sendmail_Core {
|
|||
|
||||
$mail->IsSMTP();
|
||||
$mail->Host = module::get_var("phpmailer", "smtp_server");
|
||||
$mail->Port = module::get_var("phpmailer", "smtp_port");
|
||||
|
||||
if (module::get_var("phpmailer", "smtp_login") != "") {
|
||||
$mail->SMTPAuth = true;
|
||||
if (module::get_var("phpmailer", "use_ssl") == true) {
|
||||
$mail->SMTPSecure = "ssl";
|
||||
}
|
||||
$mail->Username = module::get_var("phpmailer", "smtp_login");
|
||||
$mail->Password = module::get_var("phpmailer", "smtp_password");
|
||||
} else {
|
||||
|
@ -115,7 +119,7 @@ class Sendmail_Core {
|
|||
$mail->FromName = module::get_var("phpmailer", "phpmailer_from_name");
|
||||
$mail->AddAddress($to);
|
||||
$mail->IsHTML(true);
|
||||
|
||||
|
||||
// demdel's fix for the ecard module.
|
||||
$boundaryLine = explode("\n", $message, -1);
|
||||
$newboundary = substr($boundaryLine[0],2);
|
||||
|
@ -131,4 +135,4 @@ class Sendmail_Core {
|
|||
|
||||
return $mail->Send();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,9 +102,13 @@ class Sendmail_Core {
|
|||
|
||||
$mail->IsSMTP();
|
||||
$mail->Host = module::get_var("phpmailer", "smtp_server");
|
||||
$mail->Port = module::get_var("phpmailer", "smtp_port");
|
||||
|
||||
if (module::get_var("phpmailer", "smtp_login") != "") {
|
||||
$mail->SMTPAuth = true;
|
||||
if (module::get_var("phpmailer", "use_ssl") == true) {
|
||||
$mail->SMTPSecure = "ssl";
|
||||
}
|
||||
$mail->Username = module::get_var("phpmailer", "smtp_login");
|
||||
$mail->Password = module::get_var("phpmailer", "smtp_password");
|
||||
} else {
|
||||
|
@ -115,7 +119,7 @@ class Sendmail_Core {
|
|||
$mail->FromName = module::get_var("phpmailer", "phpmailer_from_name");
|
||||
$mail->AddAddress($to);
|
||||
$mail->IsHTML(true);
|
||||
|
||||
|
||||
// demdel's fix for the ecard module.
|
||||
$boundaryLine = explode("\n", $message, -1);
|
||||
$newboundary = substr($boundaryLine[0],2);
|
||||
|
@ -131,4 +135,4 @@ class Sendmail_Core {
|
|||
|
||||
return $mail->Send();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user