Report this

What is the reason for this report?

cant set gmail for my php applicaiton. Gmail prevent all signin attempts from my server

Posted on August 20, 2015

i have a php application from where users can send email notification to their customers. users can send email using their yahoo or other email hosting but they are having problem on gmail and hotmail. when they try to authenticate their gmail address gmail simply disallow it. when i check gmails device activity and notifications section for that email address, i found “Sign-in attempt prevented by Google” for all the requests from my server ip.

how can i resolve this issue?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @vedalken254:

@newbie I think i know the issue with Gmail, but not necessarily Hotmail… I’ll look into the hotmail side. Anyways, for Gmail: https://support.google.com/accounts/answer/6010255?hl=en <— follow those instructions if you control all the applicable gmail accounts or have your customers do it to allow your server to properly send emails from gmail. Apparently, Google wants OAuth2.0 implementations instead of POP3, IMAP, and SMTP which a lot of Mail Client developers are fighting tooth and nail because of the implications from implementation. I will look at hotmail’s stuff but it’s probably similar.

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.