I can’t configure my mail server to be able to send emails via API on both IOS and Android from my ShareMyNeeds app. Attached evidence of the configuration attempt and the error obtained:
Username and Password are not accepted. Message from smtp server: 534-5.7.14
534-5.7.14 if5cU3bzZrV21eteBXQDj6gLvJYN2F4sdVtplCiBisrMO18PpkQ4VkIK1YiRqjEINhmxB
534-5.7.14 OCsXkToaQz9G0bdxbcEoHdHRBhxgBW87NH_em8EkN25oErRk3jLuqCZdCkqVN9uI>
534-5.7.14 Please log in via your web browser and then try again.
534-5.7.14 Learn more at
534 5.7.14 y84sm389349oie.16 - gsmtp
Regards,
Andriy_Konoz
(Andriy Konoz)
Made this topic public
#2
It seems that it can be due to disabled “Less secure apps” option on the Google side. Google detects suspicious authorization attempt and block the call. Try to enable this option in your Google account and try again to set up SMTP configuration.
More information about this Google fetature you can find by this link Less secure apps & your Google Account - Google Account Help
Please, write me back about result of your attempt.
Also I have made this topic public since private topics are only for PRO customers.
Now I have in the account “appsharingneeds@gmail.com” activated the access of less secure applications. When performing the server configuration again with:
There is one more detail which can cause problems.
For port 587 “TLS” security should be selected.
For port 465 “SSL” security should be selected.
Have you specified correctly security when configured SMTP?
Also check once more “Less secure apps” option. Google can turn it off without warning you.
I have tested again with the security conditions that you indicate and making sure that the indicator that allows access to less secure applications is activated. The result is the same:
“Username and Password are not accepted. Message from smtp server: 534-5.7.14”
At the moment the shipments are made for all the email accounts that I have used as recipients. The only problem is that in some of them the received mail appears as spam and I am investigating how to avoid it.
Great to hear that you are managed to configure SMTP.
If to talk about spam problem - one of the reasons why emails can be marked as spam is the different emails in “From Email” and “User ID” fields. I am pointing it out because in one of your examples you used different emails for this fields.