• Resolved Jon Brown

    (@jb510)


    I seem to recall Yehudah shared with me that one could set a DEFINE in wp-config that would disable all email delivery. Something like “log mode only”.

    Can you re-share what that is?

    Reviewing the code I discovered there is a page with an option for “log and delete”, but I need to set that in code so it survives DB updates on staging/dev.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support M Haseeb

    (@haseeb0001)

    @jb510 Hi,

    Hope you are doing good.

    You can do that by simply defining the POST_SMTP_RUN_MODE constant to ‘log_only’ as follows in your wp-config;

    define( ‘POST_SMTP_RUN_MODE’, ‘log_only’ );

    Let us know if there is anything else we can help you with.

    Thanks

    • This reply was modified 3 years, 7 months ago by M Haseeb.
    Thread Starter Jon Brown

    (@jb510)

    TY. Just a note for others in the post above it’s being formatted with curly quotes which can break PHP if it is copy/pasted.

    Should be:
    define( 'POST_SMTP_RUN_MODE', 'log_only' );

    Plugin Support M Haseeb

    (@haseeb0001)

    @jb510

    Thanks for updating.

    We would appreciate a kind and honest review.

    Thanks

    Thread Starter Jon Brown

    (@jb510)

    @haseeb0001 strange, I’m sure I reviewed this before the ownership transfer. But I’ll refrain now because it wouldn’t be 5 stars.

    Basically, the thing Yehuda most needed to address was the horrible logging.
    1) use a dedicated DB table and include a tool to purge logs (whether the plugin is removed or not)
    2) Need much better search and filtering of logs. Ability to export logs as CSV.

    The other feature request was around fallbacks, which ought to have an option to fallback the PHP mail from the server, not just another SMTP service.

    I’m delighted you all took over maintaining this plugin, but feel you wasted a ton of effort refreshing the UI. It was never a great UX, but the refresh is not any better than what was there, it’s just different. It’s still an awkward and confusing multi-tabbed wizard thing when a single settings page using WP’s standard design elements, colors, etc… would be much preferred.

    Thread Starter Jon Brown

    (@jb510)

    Oh look! I actually did write a review 5 years ago… https://ww.wp.xz.cn/support/topic/best-by-far-7/

    I’ll leave that review as-is, but hope you take the feedback above to heart.

    Plugin Support M Haseeb

    (@haseeb0001)

    @jb510 Great, thank you so much 🙂

    Plugin Support M Haseeb

    (@haseeb0001)

    @jb510

    We haven’t heard from you, so we’ll mark this thread resolved. Feel free to open a new one if you need it.

    Thread Starter Jon Brown

    (@jb510)

    You probably weren’t actually waiting on a response from me, but clear to resolve. Thanks.

    Plugin Support M Haseeb

    (@haseeb0001)

    @jb510 Thanks

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

The topic ‘Log Only Mode for staging / dev’ is closed to new replies.