WordPress.org

Support

Support » Plugins and Hacks » Subscribe2 » [Plugin: Subscribe2] need unsubscribe action link in email template

[Plugin: Subscribe2] need unsubscribe action link in email template

Viewing 4 replies - 1 through 4 (of 4 total)
  • @superbogel,

    You would need to edit the code to accomplish this. Subscribe2 is designed to allow emails to be sent by putting several subscriber addresses into the BCC header. Since the unsubscribe link is user unique adding it to a BCC header would not work so the feature you describe is not implemented.

    @mattyrob, can you point me out which part to start 1st? thank you for your advise!

    @superbogel,

    If you are looking to edit the code and make that task as simple as possible make sure you set the number of recipients per email to 1 in Subscribe2->Settings – that will avoid the need to mess with BCC headers.

    Then you would be best served by adding a line of text with the {ACTION} keyword to the email template.

    Finally, presuming you are using per-post notifications, you would need to make some edits to the publish() function where the body of the emails are prepared (around line 710) adding something like this for each email type:
    $body = str_replace("{ACTION}", $this->unsubscribe, $body);

    @mattyrob, thank you very much this will be very interesting, I will try and give it a shot there 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Subscribe2] need unsubscribe action link in email template’ is closed to new replies.
Skip to toolbar