简体   繁体   English

单击邮件中的链接时如何获取Gmail ID

[英]How to get the Gmail ID on clicking the link in the mail

i have a java application that sends group mail with a link (Only Gmail ), i need to get the mailId of the person who clicks the link in the mail, and based on the mailId it should login to may application, is there any api for connecting, or what should i follow. 我有一个Java应用程序,该应用程序发送带有链接的组邮件(仅Gmail ),我需要获取单击邮件中链接的人的mailId,并且应基于mailId登录到may应用程序,是否有任何api连接,或者我应该遵循什么。

Thanks in advance. 提前致谢。

Gmail sanitisd the links as best as they can. Gmail会尽力清理链接。 You will have to generate unique link for each user and map that to gmail account in your database. 您将必须为每个用户生成唯一的链接,并将其映射到数据库中的gmail帐户。 For example, add a query parameter id=12345 to your link like : http://yourdomain.com/app/?id=12345 例如,将查询参数id=12345添加到您的链接中,例如:http: //yourdomain.com/app/? id=12345

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM