Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP
i logged in normal gmail, after that i have a asp page url in my inbox, when i clik the link just i want to get the gmailid from gmail
Posted 18-Nov-12 23:45pm
Comments
Abhishek Pant at 19-Nov-12 5:01am
   
Is it you want to get permisson from gmail that to access the gmail?
daminjohny at 19-Nov-12 5:09am
   
no abhishek, i need just gmail id from gmail account to my application,please help me

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If the email is in the Gmail's inbox , containing a link to your aspx page => you have sent that email , So you can customize the url like (www.yourpage.com/landingpage.aspx?mail=EncodedEmail) before sending the email
 
the EncodedEmailwill be the user's email in encoding format ,
on that aspx page you can get teh query string , decode it , get the emailid , i.e. from which email the link is being clicked.
 
Or you can use open authentication , it needs the user to allow you to access the email id
 
Check this Solution
 
Is it possible to get user email using Google api without requesting access to Contacts
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.150302.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100