Unsubscribe from Newsletters

Hi Experts,
I have a small newsletter system built with Asp.net
What I want to do is send a Unsubscribe option in the Newsletter,and when user clicks on this link automatically change the subscription status to '1' in database (status ='1' indicates that he is removed from the sending list).
How can I do this?
LVL 8
Johny BravoAsked:
Who is Participating?
 
MatthiasVanceConnect With a Mentor Commented:
You can do that by customizing each Unsubscribe link you send. ie: Add a url parameter to it.
0
 
MatthiasVanceCommented:
Do you know how to connect to the database? If so, it'd be as easy as performing an UPDATE.

Kind regards,

Matthias Vance
0
 
Johny BravoAuthor Commented:
Ya that's fine.But what I want to know is which user is clicked the 'Unsubscribe' link.

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Johny BravoAuthor Commented:
You mean attaching an E-mail id as a parameter?
then reading the querystring and then updating database depending on that value.
Is there any other way to do?
0
 
MatthiasVanceCommented:
Yes, that's the only way you can track links.

Regards,

Matthias
0
 
Johny BravoAuthor Commented:
Ok thanks Matthias.I jjust want to hide/change  that url,I don't want users to see the url,as it contains the email id of their,how to do?
0
 
MatthiasVanceCommented:
Well they can always view the URL if they want to, so there's no way of really hiding it.
0
 
Johny BravoAuthor Commented:
Can I change it to something random so they don't understand it.
0
 
MatthiasVanceCommented:
Yes you may!
0
All Courses

From novice to tech pro — start learning today.