Support » Plugin: WP Mail SMTP by WPForms » Control to Dismiss “Email Delivery Error” Notice

  • Resolved scottbrownconsulting

    (@scottbrownconsulting)


    There needs to be a control to dismiss the error message in situations where it gets generated but mail transport is never going to succeed normally, such as test environments. It’s fine that it toggles until the next successful mail send in production environments, but there are cases where we need to dismiss it manually.

    There is presently no control to do so. Nor can I find any side door procedure to do so. I have the notice in my face on every single page of wp-admin with no way to get rid of it.

    Please add a control in admin to manually dismiss the notice. Even better please post here or directly message me a procedure to dismiss it manually from the database backend so I don’t have to be pestered by it in my development environment.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    Hi Scott.

    As the plugin is focused mainly on ordinary users (not developers) working in a production environment, I don’t think that we will introduce the option in the admin area.

    But I still see the value in a filter to disable those notices for developers while working on dev/staging environments.

    Thank you for your suggestion. I think, I will include this filter in the next release of the WP Mail SMTP plugin.

    Thread Starter scottbrownconsulting

    (@scottbrownconsulting)

    In a way that would be more hazardous than a one-time manual dismissal control, because it would carry the risk of being accidentally carried to prod and permanently squelching the notices where they matter.

    I need a method that clears the state, not just silences the notice. It can be a filter or global, that’s fine, but such that it can be toggled, state cleared, and removed. The request here is to reset the error state, the notice is just the outward symptom.

    I can study your code and figure out how to do it myself, of course, but it would be better if you provided it.

    One more thing. The plugin has over 1 million installations. It ends up on a great many internal staging servers and virtual machines. It’s far from an unusual or edge case.

    Thread Starter scottbrownconsulting

    (@scottbrownconsulting)

    Folks, here’s how to clear the error state yourself. Stick this line in your theme’s functions.php, load any page on your site, then you can remove the line.

    delete_option('wp_mail_smtp_debug');

    It’s ridiculous that this isn’t a standard control in the admin for the plugin.

    Plugin Author Slava Abakumov

    (@slaffik)

    WP Mail SMTP v1.6 (that will be released soon), will have a filter, that will allow you to disable these particular global debug notices.

    
    add_filter( 'wp_mail_smtp_core_display_general_notices_is_debug_displayed', '__return_false' );
    

    I hope that will help you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Control to Dismiss “Email Delivery Error” Notice’ is closed to new replies.