Solved

get email of user using asp.net

Posted on 2009-04-06
7
489 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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