Support » Plugin: Events Manager - Email Users » Email sending method

  • Resolved Antipole


    On my test site, I have the Stop Emails and Log Emails plugins active to stop emails actually being sent. I can then view them in the log to see what would have been sent, were it the live site. It works well for just about everything.

    However, emails sent from this plug seem to go out anyway and are not logged. Stop emails only stops emails sent via wp_mail() and not PHP mail().

    Please confirm which you are using and, if not wp_mail(), is that unavoidable?


Viewing 1 replies (of 1 total)
  • Plugin Author Stonehenge Creations


    No, this this plugin does not use wp_mail(), because of several, technical limitations in wp_mail(). So it uses the in WordPress included PHP Mailer class.

    There is an Email Flow Chart image in the settings that explains why.

    If you want to prevent emails from being sent, but log them in the WordPress debug.log instead, simply edit line 479 in events-manager-email-users/includes/class-functions.php


    error_log( print_r( $mail, true) );

    Please make sure your have WP Debug enabled, else noting wil be written to the log file:

    In your wp-config.php:
    define( 'WP_DEBUG_LOG', true );

Viewing 1 replies (of 1 total)
  • The topic ‘Email sending method’ is closed to new replies.