#3047 Unsubscribe links on outgoing emails

Slash 2.5/3.0
Messaging (110)

On sending email to a user, we should generate an "nomailtoken"
(similar to a logtoken) of randomly generated letters. A table
should correlate those tokens with the uid and message type being
sent. At the bottom of the email should be a link to messages.pl?
op=nomail&nomailtoken=abcdefg, and a hit to that URL should
immediately set that message type for that user from "mail" to

The user in question should not be logged-in for that hit, of course,
so $user should remain the AC. A confirmation of the action should
be printed on the resulting webpage, and maybe logged as a web-
based message (not sure if that's a good idea), but not sent in

There should also be, at the bottom of each email, a "master"
nomailtoken which will turn off all mail for all message types for
that uid.

This will not only reduce our inflow of email from users who can't
figure out how to log in and turn off messaging, it will increase the
targeting on our email ads because more of the users who don't
read them will not be getting them.


  • Jamie McCarthy

    Jamie McCarthy - 2004-11-09

    Logged In: YES

    We might want to do this as a plugin, and instead of messages.pl, have
    the URL be /nomail.pl?token=abcdefg . That would eliminate worries
    about whether the user was correctly logged-in or not in messages.pl --
    the nomail.pl script would be the only one where the user cookie is

    In that case, appending the unsubscribe text to the email would best be
    done through a hook...

  • Jamie McCarthy

    Jamie McCarthy - 2004-11-09
    • assigned_to: jamiemccarthy --> pudge
  • Chris Nandor

    Chris Nandor - 2005-01-06
    • priority: 5 --> 4

Log in to post a comment.