Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildPhpMailer SMTPSecure #38

Open
EgidijusL opened this issue Aug 5, 2022 · 1 comment
Open

buildPhpMailer SMTPSecure #38

EgidijusL opened this issue Aug 5, 2022 · 1 comment

Comments

@EgidijusL
Copy link

EgidijusL commented Aug 5, 2022

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;
}
@Hugues-Antoine
Copy link

Thank. This worked for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants