Question

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

Posted August 20, 2015 5.9k views
PHPEmail

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?

6 comments

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.

×
1 answer

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

Submit an Answer