0

I want to try to send an email using phpmailer in the codeigniter 3 framework, after I tested it on localhost the email was sent successfully, but when I try to run it on the hosting server an error message appears

Error output

Then I try to check my code, everything is normal, there is no difference, here is my code :

application/config/email.php

Settings

application/controller/Email.php

Code

I hope someone can help me here,

Thank you

Synchro
  • 35,538
  • 15
  • 81
  • 104
Ade
  • 1
  • 1
  • 1
    "Failed to authenticate password". Have you checked same password via browser first? Mainly looks like you have a problem there. – masterguru Dec 17 '21 at 06:38
  • This exact problem is covered in [the PHPMailer troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#gmail-oauth2-and-allow-less-secure-apps). Please [search before you post](https://stackoverflow.com/search?q=%5Bphpmailer%5D+Please+log+in+via+your+web+browser+and+then+try+again) as this exact question has been asked and answered many times before. – Synchro Dec 17 '21 at 08:21

0 Answers0