• Resolved Lutz.H

    (@lutzh-1)


    Hi MattyRob,

    sorry, it’s me again … 😉

    Changed my host account to an expensive one which can handle it’s own cron jobs, de-activated WordPress cron job. Second problem could have been not supported SMTP mail handling, so installed a plugin called “Configure SMTP”.

    This helpt with the mails when a comment has been written and manually mails can be sent, too. So the main problem seems to be fixed – thanks again for your help and patience!

    Nevertheless there are two problems left:

    1: There is still no automatically mail sent by Subscribe2. After half an hour after the set time I hit the button “Send Newsletter Again”, then the mails were sent! So I guess we come back to a problem with your plugin …
    Any idea what I could do?

    2: After I sent out the newsletter manually I saw it for the first time … and am a litle disappointed. It’s not formatted at all and containt no pictures. Even worse: it looks like that:

    Headline
    link

    text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

    Headline
    link

    text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

    and so on …

    So the reader is not able to check out which parts belong together. Headline + link seem to be one unit, the text another one.

    To make it short: I really, reall do hope that there is a way to format that mails and put some pictures into it – or otherwise all our work, my time and my money would have been spent for nothing!

    Again: If you can fix all this, I’ll donate with pleasure!

    Thanks again in advance and kind regards,
    Lutz

    http://wordpress.org/extend/plugins/subscribe2/

Viewing 15 replies - 16 through 30 (of 44 total)
  • Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    alright, tricked the tool ;))

    Changed to “send every hour”, then the date changes to today, too. After that I got an automatically sent mail! Ta-daa!

    Included have been some older posts from yesterday, but I’m not sure if that’s because these posts never have been sent. Can you tell me how Subscribe2 which posts go into the newsletter?

    AND: The “subject” of the newsletter mail says “[mobilwatch.net] once an hour collected message” (translated from German, don’t know the correct English description, sorry. Where can change that description? Didn’t find anything like that in the “subscribe2-de_DE.po” file.

    Tomorrow I will set up HTML with your Pro version …
    Hope, that’ll work out much easier ;))

    @lutz,

    Subscribe2 creates database entries for the last successful sending and collects posts made since then. It also stores the previous successful so you can force a resend if something went wrong further down the emailing route (like an issue on the mail server).

    The subject for the Digest email is best change with a piece of code that acts as a filter. It’s discussed in this recent thread.

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    thanks again!

    will check if it works in 45 minutes ;))

    I do not need any “<script>” or something around it?
    Just this plain code:

    add_filter(‘s2_email_subject’, ‘my_filter’);
    function my_filter($subject) {
    if ( strstr($subject, “Digest Email”) ) {
    $subject = “Ihr täglicher Newsletter”;}
    return $subject;}

    @lutz,

    That’s PHP code so it needs to be in a plugin file. It’ll need a header with some of this:

    <?php
    /*
    Plugin Name: Name Of The Plugin
    Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
    Description: A brief description of the Plugin.
    Version: The Plugin's Version Number, e.g.: 1.0
    Author: Name Of The Plugin Author
    Author URI: http://URI_Of_The_Plugin_Author
    License: A "Slug" license name e.g. GPL2
    */
    ?>

    Enter the code above between the last */ and the ?>.

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    see: all that damn stuff I don’t know …
    Have to go to a HTML school ;))
    Thanks!!!!

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    I’m sorry, that didn’t work…
    Copyied into my “custom code” section of my theme in the field “header code” the following:

    <?php
    add_filter(‘s2_email_subject’, ‘my_filter’);
    function my_filter($subject) {
    if ( strstr($subject, “Digest Email”) ) {
    $subject = “Ihr täglicher Newsletter”;}
    return $subject;}
    ?>

    Isn’t that correct? It seems to, because the mailing was sent out with it’s default subject. Can you help again?

    But the good news is: mail works fine! Correct posts grabbed, every hour sharp, not problems with the mailing as it seems. Great! Thanks or that!!!!
    And that means that the cause of the problem was that irritation with time and date – I hope I could help you with that info in return ;))

    Kind Regards,
    Lutz

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    I’m sorry, that didn’t work…
    Copyied into my “custom code” section of my theme in the field “header code” the following:

    <?php
    add_filter(‘s2_email_subject’, ‘my_filter’);
    function my_filter($subject) {
    if ( strstr($subject, “Digest Email”) ) {
    $subject = “Ihr täglicher Newsletter”;}
    return $subject;}
    ?>

    Isn’t that correct? It seems to, because the mailing was sent out with it’s default subject. Can you help again?

    But the good news is: mail works fine! Correct posts grabbed, every hour sharp, not problems with the mailing as it seems. Great! Thanks or that!!!!
    And that means that the cause of the problem was that irritation with time and date – I hope I could help you with that info in return ;))

    Kind Regards,
    Lutz

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    okay, found the exact problem of that bug: I just switched back again from hourly newsletter to daily and with that changed the date of the next cron job to tomorrow! I get I didn’t get that on my former tests because I only watched the time.
    By the way: This has nothing to do with the selected time an if this is before or after the local time (UTC or site time) – even if those are AFTER the actual time of the setting changes (and with that it would be time enough to send out the next newsletter today), Subscribe2 will plan the next cron job for tomorrow!
    Hope that helps finding the bug and correcting it ;))

    Nevertheless: There’s still the problem with the custom subject line for the newsletter mails: the code I mentioned above isn’t working, there must something be wrong with that, maybe with the way I embedded it in the header custom code section of my theme or the HTML style type or whatever … Please do not forget to help me, fixing that ;))

    Again: Thanks in advance and kind regards,
    Lutz

    @lutz,

    Okay, the digest scheduling is supposed to work like that, when you set it it takes the time now plus the periodic interval you want to use, so for hourly it will send the first time an hour from now, daily will be tomorrow and weekly in a weeks time. It won’t send now and then start counting.

    You second issue is because I think you put that code into your theme rather than making a new plugin. If you take the latter approach it should work.

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    alright, that makes sense, too ;))
    Maybe you can give a red hint in the next version so that every new user knows, how the tool is working.

    Code: OMG!
    Can I edit the subject in the HTML version of Subscribe2 – I would buy this one nevertheless? If not: How can I create a new plugin?

    @Luzt,

    Take the code I gave you above and also the PHP header that was pasted into a post and put the 2 together in a file. Upload it to your plugins folder and then use the admin area to activate it.

    You’ll have created your very own WordPress plugin!

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    holy sh*t! Almost crashed my WordPress dashbord!
    It’s total design has been disrupted, error messages, panic!
    Nearly made it to delete my “nice” little plugin …

    I did the following:

    code=

    <?php
    /*
    Plugin Name: Subscribe2_Custom_Subject
    Description: changes the subject of the newsletter mails
    Version: 1.0
    */
    ?>

    add_filter(‘s2_email_subject’, ‘my_filter’);
    function my_filter($subject) {
    if ( strstr($subject, “Digest Email”) ) {
    $subject = “Ihr täglicher Newsletter;}
    return $subject;}

    Put that with the editor into a file called “subscribe2_custom_subject.php”, loaded it up to the ftp server, into the plugin folder, activated it.

    Then the wp dashboard layout was disrupted and disordered, so I deteled the folder from the ftp server. Then got these error messages:

    Warning: fopen(/is/htdocs/wp11032600_05RGMQV5HY/www/wp-content/plugins/custom-subject/Subscribe2_Custom_Subject.php) [function.fopen]: failed to open stream: No such file or directory in /is/htdocs/wp11032600_05RGMQV5HY/www/wp-includes/functions.php on line 3373

    Warning: fread(): supplied argument is not a valid stream resource in /is/htdocs/wp11032600_05RGMQV5HY/www/wp-includes/functions.php on line 3376

    Warning: fclose(): supplied argument is not a valid stream resource in /is/htdocs/wp11032600_05RGMQV5HY/www/wp-includes/functions.php on line 3379

    finished wp and logged in again – then no more messages were displayed.

    To make it short: I must have made a mistake somewhere.
    Can you help again, please?

    So much for creating my own plugin … ;))

    @Luzt,

    Your code is nearly there but not quite right. The “code” needs to come BEFORE the closing PHP tag – which is the ?>. Your finished plugin code should be this:

    <?php
    /*
    Plugin Name: Subscribe2_Custom_Subject
    Description: changes the subject of the newsletter mails
    Version: 1.0
    */
    
    add_filter('s2_email_subject', 'my_filter');
    function my_filter($subject) {
    if ( strstr($subject, "Digest Email") ) {
    $subject = "Ihr täglicher Newsletter";}
    return $subject;}
    ?>

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    thanks again! Don’t know if it’ll work (next run: tomorrow 4pm UTC), but at least I’ve got no error messages or nervous breakdown by the wp dashbord ;))

    Today I’ve got to do some other work but tomorrow after 4pm I’ll start with the customization of the newsletetr mails with your HTML version – I really do hope that I can make that by myself! I’m really verry sorry for bothering you that much! But I hope that you might have got some ideas what to optimize in your next program versions ;))

    By the way: I’d suggest to put all those topics into the Pro version (I mean customization of the subject, including and positioning pictures and so on) and take some 49$ for the Pro app. I guess lot of people like me would be happy to pay that amount if they can customize the newsletter easily with it and not neading additional plugins!

    And you should position links to the Pro version more prominent: I didn’t know that it exists unil you told me. Other authors have placed hints the a pay version of their program on almost every possible page of the installation and description process ;))

    Kind regards,
    Lutz

    Thread Starter Lutz.H

    (@lutzh-1)

    @mattyrob,

    now bought your HTML version: wanted to do the installation today. I read that I have to copy the whole folder onto the server – but don’t I override my former settings with that? I mean the German messages for the subscribing process and so on?

    Or how can I save my settings? There’s a lot of work in there already …

Viewing 15 replies - 16 through 30 (of 44 total)
  • The topic ‘[Plugin: Subscribe2] E-Mails not formatted, no images’ is closed to new replies.