Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove from distribution list

Status
Not open for further replies.

meravsha

Programmer
Jul 27, 2001
21
IL
Hi,
I would like to add Remove link to an Information email,
in order to allow users to stop getting those mail.

but the link is to an ASPX page that containe email textbox and button
How can I know the Email address of the user without him to write???

thank.
 
Add it in the querystring of the link they are clicking on...

Code:
<a hre="[URL unfurl="true"]http://mydomain.com/removefromlist.aspx?email=user@domain.com">remove[/URL] me from this list</a>

Although you run into privacy problems with that method as it opens up the transfer of an email address over the internet. Best solution is to ensure all your emails have an ID attached to them and pass this ID...on your remove page, grab this ID and query the db for the record and remove it, flag it for removal, or whatever else you need to do...

Code:
<a hre="[URL unfurl="true"]http://mydomain.com/removefromlist.aspx?emailID=123">remove[/URL] me from this list</a>




--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top