Swift_TransportException

When trying to send email from localhost I got this error using swift mailer extension


Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at

535 5.7.8 support.google.com/mail/?p=BadCredentials 189sm6173361pgh.5 - gsmtp

@softark any solution

Hi Yasar,

I’m sorry, but I don’t understand what you are asking. Please try to elaborate your issue with more details, and hopefully someone will give you a help.

Now see the question

Issue fixed.

I forget to add extension in main-local.php

and

Forget to Turn_On google less secure apps(https://www.google.com/settings/security/lesssecureapps?rfn=27&rfnc=1&et=0&asae=2&anexp=ire-control)

Congrats, anyway. :D