I have created a PHPMailser script and I can able to trigger out mails without SMTP but If I use SMTP , II'm getting the below errors. I've tried all the possibilities suggested by google but no luck.
I'm sure the script is good and If I'm using gmail account but not the account created from virtualmin.
Can anyone suggest me on this ?
===== SMTP -> ERROR: Password not accepted from server: 535 5.7.8 Error: authentication failed: authentication failure
SMTP -> ERROR: RCPT not accepted from server: 554 5.7.1 <>: Relay access denied
SMTP Error: Could not authenticate.