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

🐛 [Bug Report]: Unable to send email using PHP SMTP. #156

Open
lightningcal opened this issue May 15, 2024 · 1 comment
Open

🐛 [Bug Report]: Unable to send email using PHP SMTP. #156

lightningcal opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lightningcal
Copy link

BlizzCMS Version

2.0.0-beta.3

Emulator

CMaNGOS

PHP Version

PHP 8.1

Operating system

Linux

Web server

Apache

Database

MySQL 8

What happened?

I'm unable to get SMTP work, using AWS SES which requires TLS. I've verified my smtp creds are correct thru a separate script to send an email. I also tried gmail SMTP and that also failed. Is there a particular smtp service I should be using instead? SendGrid, Mailgun, etc...?

Here's screenshots of the AWS SES smtp error, and gmail smtp error.
smtp Screenshot 2024-05-15 001436
image

How can the issue be reproduced?

Configure smtp in settings. Click verify to try to send a test email. The errors I attached are from that. I've also verified if you enable email verification then create an account you won't get the email.

Screenshots

No response

@lightningcal lightningcal added the bug Something isn't working label May 15, 2024
@lightningcal
Copy link
Author

Apparently this is known codeigniter3 issue. https://stackoverflow.com/questions/70143134/codeigniter-3-unable-to-send-email-using-php-smtp-your-server-might-not-be-conf

I solved it in my copy of BlizzCMS by adding:

$this->email->set_newline("\r\n");

after:
$this->email->message($message);

in the file: application/models/Auth_model.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant