-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Error message while email service is working #2820
Comments
It's not PHPMailer generating that "Error:" string – it must be something in your own code. You seems to be considering that any output at all is an error, which is not true. Minor point - learn how to use composer properly. You're loading its autoloader, but short-circuiting it by loading PHPMailer's classes yourself, which you don't need to do if you're using composer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please check these things before submitting your issue:
SMTPDebug = 2
setphpmailer
, but search first!Problem description
But, in the response I am getting the above message:
"2022-11-03 12:50:34 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP z23-20020a1c4c17000000b003b31c560a0csm1168771wmf.12 - gsmtp . . . "
And on the html page, under the form, I get (the whole message is here - same message in the response) this message as an error:
If I use $mail->SMTPDebug = 0; OR false; the message is:
> Error: Message sent
Code to reproduce
my contact.php file:
Debug output
Why do I get the error message?
How can it be fixed?
Many thanks!
The text was updated successfully, but these errors were encountered: