emailqueue icon indicating copy to clipboard operation
emailqueue copied to clipboard

buildPhpMailer SMTPSecure

Open EgidijusL opened this issue 2 years ago • 1 comments

It did not send me an email using SMTP, it showed an error: "SMTP Error: Could not connect to SMTP host.". In common.inc.php I added the line "$mail->SMTPSecure = SMTP_SECURE;" and in config line add "define("SMTP_SECURE", "ssl");", emailing works.

if (SMTP_IS_AUTHENTICATION) {
  $mail->SMTPAuth = true;
  $mail->SMTPSecure = SMTP_SECURE; // ADD LINE
  $mail->Username = SMTP_AUTHENTICATION_USERNAME;
  $mail->Password = SMTP_AUTHENTICATION_PASSWORD;
}

EgidijusL avatar Aug 05 '22 09:08 EgidijusL

Thank. This worked for me too.

Hugues-Antoine avatar Oct 18 '22 20:10 Hugues-Antoine