[resolved] digest email subject line (4 posts)

  1. eridout
    Posted 4 years ago #

    Subscribe2 works great for me on my tiny personal blog with a half-dozen subscribers. Thank you!
    One observation is that my attempted customization of the subject line for the daily digest auto-email gets ignored. Instead of what I specify --
    auto-email [{BLOGNAME]) blog updated
    -- the emails go out with this subject line:
    [BLOGNAME] Once Daily Digest Email


  2. mattyrob
    Posted 4 years ago #


    You can amend the Digest email subject line with a little bit of PHP code using a filter in Subscribe2. Crete your own little plugin like this:

    Plugin Name: My Digest Subject
    Description: Change the Subject line of the Subscribe2 Digest email.
    Version: 1.0
    Author: Me
    function my_subject($subject) {
        if (strstr($subject, "Digest") !== false( {
            return "My Custom Subject Heading";
    add_filter('s2_email_subject', 'my_subject');
  3. eridout
    Posted 4 years ago #

    Thanks for that code.
    Unfortunately creating a plugin is new to me
    and I'm not having much luck.
    I tried by changing an existing inactive plugin,
    but the plubin install failed.
    Is there an incorrect number of close-parentheses in that code,
    particularly around line 7?
    Thanks again.

  4. mattyrob
    Posted 4 years ago #


    Whoops, sorry about that! After the word false there is a '(' and it should be a ')'. Change that and you should be fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Subscribe2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic