Solved

get email of user using asp.net

Posted on 2009-04-06
7
488 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
How our DevOps Teams Maximize Uptime

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

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending an input value from a view to a controller in MVC 3 23
Upgrading my SSIS package in VS 2012 6 62
bound data table problem 2 34
IEnumerable<T> to a List<T> 8 40
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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