Are you sure you are using the right username and password? Are you sure the smtp method works with your account?
guess you are using the google mail server/account for sending the emails. Google has a stricked security policies.
It might be worth looking at this article: https://support.google.com/accounts/answer/6010255?hl=en