Results 1 to 2 of 2

Thread: Newsletter Unsubscribe

  1. #1
    Join Date
    Sep 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Newsletter Unsubscribe

    Hi, I have set up a newsletter and what to add add a Unsubscribe link. can anybody suggest the best process to ideally automate Unsubscribe. I'm using ASP.

  2. #2
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    have a form with a single field: email address.

    pass this form to an asp script, say unsubscribe.asp

    in that file have the code somethign liek thus:

    <%
    ---insert your connect to db code here--

    rs.filter = "email = '" & request.form("email") & "'"
    if rs.RecordCount > 0 Then
    rs.Delete
    response.write("successfully unsubscribed")
    else
    response.write("email address not found")
    end if
    rs.filter = adFilterNone
    %>


    does that help?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •