Sending email using PHPMailer

Hello 000webhost community, please I am using phpmailer to send an email when a users resgistered on my website. It was working when on different hosting company. I changed to 000webhost, and the same metod use to send email via phpmailer isn’t working. Please what could be the cause. I get always get this error :

Fatal error: Uncaught phpmailerException: SMTP Error: Could not authenticate. in /storage/ssd3/441/7534441/public_html/PHPMailer/class.phpmailer.php:1697 Stack trace: #0 /storage/ssd3/441/7534441/public_html/PHPMailer/class.phpmailer.php(1540): PHPMailer->smtpConnect(Array) #1 /storage/ssd3/441/7534441/public_html/PHPMailer/class.phpmailer.php(1335): PHPMailer->smtpSend(‘Date: Fri, 19 O…’, ‘Hi! You request…’) #2 /storage/ssd3/441/7534441/public_html/PHPMailer/class.phpmailer.php(1213): PHPMailer->postSend() #3 /storage/ssd3/441/7534441/public_html/functions.php(282): PHPMailer->send() #4 /storage/ssd3/441/7534441/public_html/request-account-activate.php(115): send_mail(Array) #5 {main} thrown in /storage/ssd3/441/7534441/public_html/PHPMailer/class.phpmailer.php on line 1697

I am using Google SMTP ,with the credentials correct.
So I don’t know why ,email failed to send.
Need help.
Thanks

Thanks. But I have done all those steps to make it work in my previous web host.
I just don’t know why it’s not working here.

Huh, so you’ve done this one yeah? :frowning:

https://accounts.google.com/DisplayUnlockCaptcha

1 Like

Thanks. Just finished with this one and its working.

Its working but the email get blocked.I receive a feedback that tells me , " Your message to (example@gmail.com) has been blocked.
Please any help with that

Not without full email headers / original source not really