Saturday, 15 August 2015

email - Script Sending mails with Gmail: Failed to authenticate on SMTP server -


I'm getting difficult to send emails with a SMTP Gmail account for some PHP PHP scripts I have PHP and Symfony2 Swift Mailer , But it seems that this problem is with my Gmail account configuration. In my logs, I end up with the following error message:

  "Error - Exception occurred while flushing email queue: Failed to authenticate to SMTP server with new user name" new Fortunately, I had another Gmail account that used to work with any other application, randomly .user.name@gmail.com "using 1 possible authenticity".  

These parameters on my new box (user And password), eveything works just fine.

I have parameters.yml (ok):

  Parameter: mailer_transport: Gmail mailer_host: ~ mailer_user: old.user.account@gmail.com mailer_password: old -Password  

and there is a version proof error message:

  Parameter: Mailer_transport: Gmail Mailer_Host: ~ Mailer_User: NewUz.Count@gmail.com Mailer_password: New-password  

There is no need to say that I have checked, has been re-examined and checked the user password again.

I reviewed my Gmail account settings under "Forwarding and Pop / IAPAP" in my new account: I could not find anything about SMTP.

The search interfered with some captcha policy SMTP accounts I have read that I should try to enter a captcha phrase, which I do, and get a good message: "Account access is enabled" , "Please try signing in to your Google Account again with your new device or application."

Trying again is no luck.

All this is happening from my local dev environment (both fine mail, and not exactly mail).

How can I use SMTP with a newly created Gmail account? Any remedy? In fact, checking my inbox twice, I saw that I got a mail from Google who is trying to do something. Enter my account there, I was getting the link for the configuration parameter I was looking for:

  https://www.google.com/settings/security/lesssecureapps  

==> I just had to check: "Make my account less secure.", And was able to send mail.

In the mean time, I have found that the Gmail SMTP service is very baseless and introduces the captcha every time I think you can not do much about it. On the other hand, I have read that in some cases help to see strong passwords.

I should also say that with a newly created account, I was not able to do this work. Even uncheck the "My Account Super Safe" option. It really looks like Gmail is ending its SMTP service.

UPDATE

I wanted to show that there are some excellent and free (or very cheap for high volume) options, sending e-mails. For example, you can check among others, or,


No comments:

Post a Comment