Skip to content

buildPhpMailer SMTPSecure #38

Description

@EgidijusL

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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions