Solved

get email of user using asp.net

Posted on 2009-04-06
7
485 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS ReportViewer report timeout 7 105
Code works but it's slow 24 45
Finally almost got it 5 23
Crystal reports vb.net 2 23
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now