• Hey guys,

    having some trouble with the wp_mail function.. in essence new registrations send emails etc fine.. but when i call the function nothing happens..

    so far i have the following code:

    <?php
          $headers = "Content-Type: text/html; charset=\"" .
                     get_option('blog_charset') . "\"\n";
    
          $subject = 'Plays for Schools Reciept';
    
          $message  = '<html><head><title>Plays for Schools Reciept</title></head><body>';
          $message .= 'Hi '.ucwords($order_details[0]->cus_name).',<br /><br />';
          $message .= '</body></html>';
    
          $mail_result = wp_mail($order_details[0]->order_email, $subject, $message, $headers);
    ?>

    nothing seems to happen.. i know all the variables have data in them..

    i also have the following line in the functions.php to change the mail type to html

    add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));

    any one know what i am doing wrong?? ??

    help very much appreciated, and thank you in advanced

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