• Hello,

    i have the following code but the hook “phpmailer_init” doesn’t fire up. Any hints?

    add_action("phpmailer_init", function($phpmailer) {
        echo "hello"; exit;
     });
    				
    				
    				// send mail
    if (wp_mail(get_field('impressum_email', 'option'), "Trauernachricht", $html, $headers)) {
        wp_redirect(admin_url("edit.php?post_type=sterbefall"));
    }
    • This topic was modified 7 years, 10 months ago by mathishuettl.
  • The topic ‘phpmailer_init firing’ is closed to new replies.