How to detect if an email is a Google Account?

前端 未结 6 1530
一向
一向 2021-02-19 12:16

Me and some guys here are working on an start up. We are currently using Google OpenID API to manage registration and login to our app, but we want to migrate to a easier user r

6条回答
  •  佛祖请我去吃肉
    2021-02-19 12:27

    If you're on a Mac, open Terminal and enter $ host {example.com} to determine if their email is hosted by Google.

    For example:

    $ host yelp.com
    yelp.com has address 104.16.57.23
    yelp.com has address 104.16.56.23
    yelp.com mail is handled by 1 ASPMX.L.GOOGLE.com.
    yelp.com mail is handled by 10 ASPMX2.GOOGLEMAIL.com.
    yelp.com mail is handled by 10 ASPMX5.GOOGLEMAIL.com.
    yelp.com mail is handled by 10 ASPMX3.GOOGLEMAIL.com.
    yelp.com mail is handled by 5 ALT2.ASPMX.L.GOOGLE.com.
    yelp.com mail is handled by 10 ASPMX4.GOOGLEMAIL.com.
    yelp.com mail is handled by 5 ALT1.ASPMX.L.GOOGLE.com.
    

提交回复
热议问题