Replies: 1
For anyone who came across https://wordpress.org/support/topic/possible-to-turn-off-the-plugin-programmatically and are trying to set up WP Mail SMTP with Mailhog, you can add these line to wp-config.php
:
define( 'WPMS_ON', true );
define( 'WPMS_SMTP_HOST', 'localhost' );
define( 'WPMS_SMTP_PORT', 25 );
define( 'WPMS_SMTP_AUTH', false );
define( 'WPMS_SMTP_AUTOTLS', false );
define( 'WPMS_SSL', '' );
`