ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 3rd, 2005, 01:58 PM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 272 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 7 h 8 m 8 sec
Reputation Power: 4
Unsubscribing from a mail list.

Hey all, i've got a mail list going, which sends e-mail to people that sign up, from that e-mai, you can reply and if you have the word "remove" in your subject line, I have an automated watcher that will remove you from the list.

My question is, how can I accomplish the same thing by clicking a link in the e-mail?

You see it all the time "To unsubscribe please click here" I thought of a few ways to do it, but I don't think they are the smartest ways.

Any suggestions to put me on the right path would be great. Thanks!

Reply With Quote
  #2  
Old May 3rd, 2005, 02:14 PM
bocmaxima's Avatar
bocmaxima bocmaxima is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tucson, Sonora
Posts: 1,322 bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 46 m 5 sec
Reputation Power: 23
Send a message via AIM to bocmaxima
It depends on how you're storing your list of users.
If they're in a database, it's just a DELETE query.
If they're in a text file, it will be a more complicated.

Reply With Quote
  #3  
Old May 3rd, 2005, 02:17 PM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 272 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 7 h 8 m 8 sec
Reputation Power: 4
That's not what I mean, they are in a database, so i'm just changing the active field from 1 to 0, this is what i'm thinking...

If I put a link to a page that runs coldfusion code, so let's say, something like...

<a href="emailremove.cfm?portID=#id#>click here to be removed</a>

what would stop somebody from just hitting that page with numbers to remove everyone from the e-mail list?

So, how can I make a link, that automatically removes them, and secure the page, so people can't abuse it?

And yeah, I have security working, so you need to enter a username/password to get into any sensitive pages, but if I add a username/password into the e-mail link so it passes that problem, then whoever gets the e-mail will know the username and password...see my problem?

Reply With Quote
  #4  
Old May 3rd, 2005, 02:26 PM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 272 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 7 h 8 m 8 sec
Reputation Power: 4
Hmm, nevermind I suppose...a better/easier way is to use the link to direct them to a page they can unsubscribe from, other then trying to do it in one motion in the e-mail

Reply With Quote
  #5  
Old May 3rd, 2005, 03:02 PM
bocmaxima's Avatar
bocmaxima bocmaxima is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tucson, Sonora
Posts: 1,322 bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 46 m 5 sec
Reputation Power: 23
Send a message via AIM to bocmaxima
Quote:
Originally Posted by Caden
<a href="emailremove.cfm?portID=#id#>click here to be removed</a>

what would stop somebody from just hitting that page with numbers to remove everyone from the e-mail list?

Nothing. That's why you can't use this method.
I had an app like this on a site I ran at my last job, except there was a table with the people who didn't want the email.
Instead of providing a direct link to remove themselves, link them to an unsubscribe page with a form. That form will have an input field where they can input their email address. The post data will populate the query with their email in the WHERE clause.
To be really nice, you could also run a SELECT first to see if they're actually on your list (in case they type their own email wrong, which actually happens all the time), then warn them if they're not.

Hope that helps.

Reply With Quote
  #6  
Old May 3rd, 2005, 03:42 PM
Bastion Bastion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 181 Bastion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 4 h 25 m 11 sec
Reputation Power: 5
Quote:
Originally Posted by bocmaxima
I had an app like this on a site I ran at my last job, except there was a table with the people who didn't want the email.
Instead of providing a direct link to remove themselves, link them to an unsubscribe page with a form. That form will have an input field where they can input their email address.


Instead of having someone add their email address, you could have them log in using a user name and password they created prior (assuming there is one). If I know other suscribers' email addresses, there's nothing to stop me from adding their email addresses into the form and unsubscribing everyone. Of course, the likelihood of this happening depends on your audience--if they know each other.

Reply With Quote
  #7  
Old May 3rd, 2005, 04:23 PM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 272 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 7 h 8 m 8 sec
Reputation Power: 4
I used the "send them to an unsubscribe page" method, which I still don't particularly like, since somebody could enter any e-mail address and it'll be removed, but I suppose the internet is filled with stuff like that.

You could sign anyone up to anything as a gag.

And yeah, I could do the login thing for users, but i'm trying to make this as simple as possible being that most of the users aren't particularly computer savvy

Thanks though, for all your hints/comments

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Unsubscribing from a mail list.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT