• Resolved Peter Murbai

    (@peter-murbai)


    Hi,

    after 2 days of echo debugging it comes to one single line:

    File: class-s2-admin.php

    public function s2_meta_handler

    Line 543;

    $subscribe_meta_field = ! empty( $_POST['s2_meta_field'] ) ? sanitize_text_field( $_POST['s2_meta_field'] ) : 'no';

    change no to yes

    $subscribe_meta_field = ! empty( $_POST['s2_meta_field'] ) ? sanitize_text_field( $_POST['s2_meta_field'] ) : 'yes';

    In 10.39 if you edit a post, the checkbox
    “Check here to disable sending of an email notification for this post/page?” is interpeted in the wrong way. It’ll turn on every time you save your post.

    So no mail is sent when plublishing a post.

    This is also the reason why when publishing freshly new posts sending was working: Because the checkbox was not falsely set before.

    Change the line as described and it will work again.
    Hope this help

    br

    • This topic was modified 1 year, 10 months ago by Peter Murbai. Reason: typos, there are still more
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fix for not sending mails’ is closed to new replies.