Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

PHPFusion and SMTPSecure

Asked Modified Viewed 1,758 times
Y
yasel
Y
yasel 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

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
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

Y
Y
yasel 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet