Skip to main content
Participant
March 17, 2010
Question

unsubscribe link

  • March 17, 2010
  • 6 replies
  • 1302 views

Hello Everyone

I'm sending out an email to about 1000 people (in a database) There will be an unsubscribe link in the email.  When they click on the link - their email address will be displayed and an unsubscribe button to confirm they want to unsubscribe.

How can I retrieve the email address from the email and display it in a textbox on the unsubscribe confirmation webpage?

I'm using asp... hope you can help!

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Participating Frequently
March 17, 2010

The link you provide to them in the email should contain either the email address or account id in the querystring. Your page would then retrieve the address using the criteria provided in the querystring.

skn154Author
Participant
March 17, 2010

Hi Bregent

Thanks for the reply. So the webpage itself will have the code retriving the email address from the email?

Will I not need some code in the email message itself to send the email address to the webpage when it is opened?

something like this?...

getemail= Request.Querystring("email")

hope you can help me further.

Participating Frequently
March 17, 2010

>So the webpage itself will have the code

>retriving the email address from the email?

It depends on how you want it to work. You can have the link in the email contain the id or address so that when clicked it brings up a confirmation page with the email address already displayed and asks the user to confirm. Or the link can just bring up a page with a textbox and ask the user to enter their email - then search for it - then ask to confirm. The first sounds easier to me but I've seen it done both ways.

>Will I not need some code in the email message itself to send

>the email address to the webpage when it is opened?

>something like this?...

>getemail= Request.Querystring("email")

No, the link in the email would be something like

<a href="http://example.com/opt_out.php?UserID=joe@example.com">Opt Out</a>

You should also provide a way for the user to get removed from the list if they do not want to click on a link in a email.

On a different subject, you mentioned a mailing list with 1000 addresses. Are you planning to send these out all at once?