PHPFusion do not does not support secure connection to send mail via SMTP. includes/sendmail_include.php. To correct this detail is necessary to modify the class includes/sendmail_include.php
Find this code segment:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] if (!$settings['smtp_host']) {
$mail->IsMAIL();
} else {
$mail->IsSMTP();
$mail->Host = $settings['smtp_host'];
$mail->Port = $settings['smtp_port'];
$mail->SMTPAuth = (!empty($settings['smtp_username']) && !empty($settings['smtp_password'])) ? true : false;
$mail->Username = $settings['smtp_username'];
$mail->Password = $settings['smtp_password'];
}[/syntaxhighlighter]
And add this:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
if (!$settings['smtp_host']) {
$mail->IsMAIL();
} else {
$mail->IsSMTP();
$mail->Host = $settings['smtp_host'];
$mail->Port = $settings['smtp_port'];
$mail->SMTPAuth = (!empty($settings['smtp_username']) && !empty($settings['smtp_password'])) ? true : false;
/***************************************/
$mail->SMTPSecure = "tls"; // this or any other
/***************************************/
$mail->Username = $settings['smtp_username'];
$mail->Password = $settings['smtp_password'];
}[/syntaxhighlighter]
PHPFusion is now ready to send secure email.
0 replies