I\'m having a little trouble with PHPMailer. Can someone help? Please don\'t tell me my username and password might be wrong. I triple-checked and they are correct.
I ran into this SO many times. Gmail is finicky. You need to do some things on your end to make this work.
Follow the instructions here: https://support.google.com/mail/answer/14257?rd=1
You'll also need to be logged into your gmail account and go here: https://accounts.google.com/b/0/DisplayUnlockCaptcha
You'll also have to allow less secure apps to sign into your gmail account, under security settings on your account you'll have to push that button to allow.
Good luck! After you make the adjustments and double triple check you have everything in order and your password is correct, you may have to wait a second. It's really annoying! But once it's working you can rely on it.