Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If a recipient of my mass mailing wants to unsubscribe then how do I get that one e-mail address from them to remove it from my SQL table? I want to get their e-mail address programmatically and remove that address from my table. How do I do that?
Posted

1 solution

Add a column Subscribe_Status(bit datatype) in your table.
1 - Yes
0 - No
Based on the value, you need to do changes in your query. For example,
SQL
SELECT * FROM Tbl_Subscriptions WHERE Subscribe_Status=1

Above query picks only users(emails) who wants to subscribe.

Same way, you could change your query to remove users from resultset. Customize!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900