• Resolved nonno john

    (@nonno-john)


    Using subscribe2 for years …a great plugin.

    For the first time, I selected “send email” to send a special email to my subscribers, outside the normal weekly notices. In the screen “send email to subscribers” I inserted a *special subject* –however, when all the emails were sent (hit SEND key) the *special subject* was overridden by *subject* used by weekly emails.

    Is there a fix?

    BTW just purchased WPMQ for throttling emails..a perfect solution, working very well.

    • This topic was modified 9 years, 3 months ago by nonno john.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nonno john

    (@nonno-john)

    This may be the problem…found code added to functions.php:

    /**
    * Subscribe2 – to change email subject line
    */

    function s2_subject_changes($subject) {
    return “Upper Saddle River Town Square’s Weekly Newsletter”;
    }

    add_filter(‘s2_email_subject’, ‘s2_subject_changes’);

    Not sure what it does (???) . Looks like “Upper Saddle River Town Square’s Weekly Newsletter’ overrides subject line….ALL the time. Is that correct ?

    @nonno-john

    Good work finding that function.php code, that is what is causing you the issue.

    If can be fixed by making the functions.php code a little more cautious. At the moment, the function is replacing the subject line in all cases without any checks.

    You could amend the function to check the passes subject line for the word ‘digest’ and only replace if that word is present.

    function s2_subject_changes( $subject ) {
    	if ( stristr( $subject, 'digest' ) ) {
    		$subject = "Upper Saddle River Town Square’s Weekly Newsletter";
    	}
    	return $subject;
    }
    
    add_filter( 's2_email_subject', 's2_subject_changes' );
    Thread Starter nonno john

    (@nonno-john)

    @mattyrob,

    Your solution worked perfectly. Thank you for the quick response …and great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“Send Email” subject overridden’ is closed to new replies.