get email of user using asp.net

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
LVL 5
chandresh43Asked:
Who is Participating?
 
QPRConnect With a Mentor Commented:
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
 
QPRCommented:
you cannot get their email address unless they give it to you.
Email addresses are not held in http headers
0
 
chandresh43Author Commented:
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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
QPRCommented:
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
 
chandresh43Author Commented:
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
 
chandresh43Author Commented:
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
 
BuginatorCommented:
The error occurs because you are using paranthesis. You must use it like this:


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

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.