Monday, 20 May 2013

how can I check if mv_mail is working properly?

how can I check if mv_mail is working properly?

I try to use mv_mail (testing on local machine) but no mail is received. the php.ini has smtp_port = 25 set and the php mail() is working so far.
how can I check if mv_mail is working
what can fail
Here is the code of my mail function:
function mv_optin_mail($id, $data){

    $url = $id."-".mv_mail_token($id, $data['token']);

    add_filter( 'wp_mail_content_type', 'set_html_content_type' );
    add_filter( 'wp_mail_charset', 'utf8' );

    $headers[] = 'From: '.sender_signature.' <'.noreply_address.'>';   

    ob_start();
    include("optin-mail.php");
    $html_mail = ob_get_contents();
    ob_end_clean();

    wp_mail( $data['email'], 'Meinveto - Bitte bestätigen Sie Ihre Unterstützung', $html_mail, $headers );
    remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    remove_filter( 'wp_mail_charset', 'utf8' );
}
I don't get any errors. Is there a way to toggle error-loggin for wordpress?
the noreply_address is noreply@root

No comments:

Post a Comment