PHP Mailer Shows Error : Mailer Error smtp connect failed. How to fix? #2495
Unanswered
muddasirshah
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Please read the docs you were pointed at. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I am using PHP mailer 6.1.6 to send emails using a gmail account. This is my code
$mail = new PHPMailer(true);
try {
//Server settings // Enable verbose debug output
$mail->isSMTP(); // Send using SMTP
// TCP port to connect to //use 465 for
It shows the following error.
Message could not be sent. Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Please suggest a fix for gmail, yahoo mail or any other service. Thanking in anticipation
Beta Was this translation helpful? Give feedback.
All reactions