[Plugin: Subscribe2] Question about email preview and upgrade proposal (with some code)
-
I’m trying to try some update in the script but if I set the daily or weekly digest and I try to send a preview email, I receive only one email instead of the 4 emails received with the “For each post” option.
It’s normal ?Also with options different from “For each post” the email-title is always [{BLOGNAME}] – “Daily/Weekly Digest Report”
I’ve solved this problem editing clss-s2-core.php at line 1624, adding the notification_subject to the mail subject.Original line:
$subject .= $display . " " . __('Digest Email', 'subscribe2'); //42 add in email subject: "Daily/Weekly Digest Report"
My edit (with some comment):
// Get email subject // 42 Add the email title from settings page $subject .= html_entity_decode(stripslashes(wp_kses($this->substitute($this->subscribe2_options['notification_subject']), ''))); //42 //$subject .= $display . " " . __('Digest Email', 'subscribe2'); //42 add in email subject: "Daily/Weekly Digest Report"
It will be useful to have in the setting page some option to set up different template/titles related to the frequency option.
E.g. for title
For Each Post option enabled
[{BLOGNAME}] – “There is a new post in our blog”
For Daily/Weekly option enabled
[{BLOGNAME}] – “Today/This week there are {number_of_new_post} new post in our blog”The same could be done with the email body, for having better text.
I suggest this changes because sometime i switch between “For Each Post” and “Daily” frequency option, for not spamming with too many email (but if it’s an important post i use “For Each Post” to notify soon as possible my users ).
Other possible changes:
{TITLE}, {POST}, {PERMALINK},… and other “for per-post emails only” can become array for daily/weekly notification, so you can adjust your template,
{number_of_new_post} : Total number of new post for daily/weekly notification
- The topic ‘[Plugin: Subscribe2] Question about email preview and upgrade proposal (with some code)’ is closed to new replies.