Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

unsubscribe link

New Here ,
Mar 17, 2010 Mar 17, 2010

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

TOPICS
Server side applications
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 17, 2010 Mar 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 17, 2010 Mar 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 17, 2010 Mar 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 18, 2010 Mar 18, 2010

Ok yep that makes sense. But will I have to put that code into each email individually?

I know how to do the second option, where the user opens the link and searches for their email address and then confirm to unsubscribe but my client requires that when the user clicks on the link, their email is already retrieved so all they have to do is click confirm.


Yes I will be sending them all at once.

Thanks again for your reply.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 18, 2010 Mar 18, 2010

>Ok yep that makes sense. But will I have

>to put that code into each email individually?

Yes, of course. Each email you send needs to encode the id/address of the individual.

>Yes I will be sending them all at once.

Check with your host and make sure they will allow this. Some hosts restrict the number of email messages that can be sent within a certain timeframe.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 23, 2010 Mar 23, 2010
LATEST

Thanks for the help! 😄

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines