Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sal Ferrarello

    (@salcode)

    Hi zagriyen,

    The way this plugin works, I’m not sure if you can temporarily disabled it.

    The plugin works by replacing the global $phpmailer with an instance of Fe_Stop_Emails_Fake_PHPMailer.

    Theoretically, something like the following might work but this is just an idea, not tested code.

    global $phpmailer;
    
    // restore $phpmailer to non-stopped version
    $phpmailer = new PHPMailer;
    
    // send your email here
    
    // start stopping emails again
    $phpmailer = new Fe_Stop_Emails_Fake_PHPMailer;

    If this or another solution works for you, I’d certainly be interested in hearing about it.

    Best of luck.

    Plugin Author Sal Ferrarello

    (@salcode)

    Hey zagriyen,

    I hope I answered your question. Since there hasn’t been any further activity on this thread, I’m going to mark it as resolved.

    If you have any further questions feel free to open a new thread.

    Thanks.

    – Sal

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable temporarily ?’ is closed to new replies.