Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
>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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
>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.
Copy link to clipboard
Copied
Thanks for the help! 😄
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more