Solved

Unsubscribe from Newsletters

Posted on 2009-05-11
9
328 Views
Last Modified: 2013-12-17
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?
0
Comment
Question by:johny_bravo1
  • 5
  • 4
9 Comments
 
LVL 8

Expert Comment

by:MatthiasVance
ID: 24352559
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
 
LVL 8

Author Comment

by:johny_bravo1
ID: 24352600
Ya that's fine.But what I want to know is which user is clicked the 'Unsubscribe' link.

0
 
LVL 8

Accepted Solution

by:
MatthiasVance earned 500 total points
ID: 24352721
You can do that by customizing each Unsubscribe link you send. ie: Add a url parameter to it.
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
LVL 8

Author Comment

by:johny_bravo1
ID: 24352741
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
 
LVL 8

Expert Comment

by:MatthiasVance
ID: 24352760
Yes, that's the only way you can track links.

Regards,

Matthias
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 24352787
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
 
LVL 8

Expert Comment

by:MatthiasVance
ID: 24352808
Well they can always view the URL if they want to, so there's no way of really hiding it.
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 24352825
Can I change it to something random so they don't understand it.
0
 
LVL 8

Expert Comment

by:MatthiasVance
ID: 24352847
Yes you may!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question