• Dear Events Manager team,
    in your class EM_Mailer and the method load_phpmailer() you use the deprecated files:
    require_once ABSPATH . WPINC . ‘/class-phpmailer.php’;
    require_once ABSPATH . WPINC . ‘/class-smtp.php’;
    In order to avoid warning notices from WP since 5.5. I think you should use the following files instead:
    require_once ABSPATH . WPINC . ‘/PHPMailer/PHPMailer.php’;
    require_once ABSPATH . WPINC . ‘/PHPMailer/SMTP.php’;

    Apart from that some more changes will probably be necessary, e.g. regarding the name space changes of PHPMailer.

    If I am correct, could you please fix that?
    Thank you and best regards
    Florian

    • This topic was modified 4 years, 4 months ago by fohly.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fohly

    (@fohly)

    Just checked. What seems to work is to replace the lines in your load_phpmailer() with what is done in the deprecated WP files class-phpmailer.php and class-smtp.php:
    `require_once ABSPATH . WPINC . ‘/PHPMailer/PHPMailer.php’;
    require_once ABSPATH . WPINC . ‘/PHPMailer/Exception.php’;
    require_once ABSPATH . WPINC . ‘/PHPMailer/SMTP.php’;

    class_alias( PHPMailer\PHPMailer\PHPMailer::class, ‘PHPMailer’ );
    class_alias( PHPMailer\PHPMailer\Exception::class, ‘phpmailerException’ );
    class_alias( PHPMailer\PHPMailer\SMTP::class, ‘SMTP’ );`

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I tried it out myself and I see what you mean, I’ve contacted the devs to take a look at this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Events Manager uses deprecated version of PHPMailer’ is closed to new replies.