Solved

get email of user using asp.net

Posted on 2009-04-06
7
486 Views
Last Modified: 2013-11-26
i wanto to send user my webpage link from email
when user click link it go to my page and that page i want to display
user's email who click that link
how i did this using asp.net
0
Comment
Question by:chandresh43
  • 3
  • 3
7 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 24075986
you cannot get their email address unless they give it to you.
Email addresses are not held in http headers
0
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 24075994
you could include it in the link they sent you like....
http://www.mysite.com/mypage.aspx?email=john@home.com

then on your aspx page you could get the address by saying....
theEmail = request.querystring("email")
0
 
LVL 5

Author Comment

by:chandresh43
ID: 24076316
but there is 50000 user i want to sent link
its not possible to sent every user with email like
http://www.mysite.com/mypage.aspx?email=john@home.com
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 29

Expert Comment

by:QPR
ID: 24081695
then you need to think of something else. Store email addresses in a database and write something to loop through them all creating email links with ids. It is impossible to find out someones email address without them supplying it
0
 
LVL 5

Author Comment

by:chandresh43
ID: 24084757
ok i store email in sql server
thin make loop that change web link to user email
but how i sent email to 50000 user
user my domain ajay@diamonforgood.com
using c#

0
 
LVL 5

Author Comment

by:chandresh43
ID: 24094226
Lbluseremail.Text = Request.QueryString("email");

it give me error
Error      1      Non-invocable member 'System.Web.HttpRequest.QueryString' cannot be used like a method.
0
 
LVL 5

Expert Comment

by:Buginator
ID: 24109147
The error occurs because you are using paranthesis. You must use it like this:


Lbluseremail.Text = Request.QueryString["email"];

Open in new window

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question