• Resolved j3ang

    (@j3ang)


    Hi,

    I’d like to turn on the Do Not Send programmatically based on time of inactivity since that sent email.

    We turn on the wp_mail() on staging and sandbox for testing email but sometimes we ‘d forget to turn it back off and sent bunch of mail accidentally.

    We tried the WPMS_DO_NOT_SEND constant in wp_config file and try to add filter, it didn’t seems to work.

    Any suggestions?

    Thanks!

    Alex

Viewing 1 replies (of 1 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @j3ang,

    Thanks for reaching out! You need to add the following lines to your wp-config.php file to enable that feature.

    define('WPMS_ON', true);
    define( 'WPMS_DO_NOT_SEND', true );

    Also, make sure to add your code above the line that reads:
    /* That's all, stop editing! Happy publishing. */

    I hope this helps. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘How to turn on Do Not Send based on last sent email’ is closed to new replies.