How to write wp_mail without header

Is it okay to write wp_mail without header?

the usage of the function is
<?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?>

Read More

Q: Can I use it like this ? <?php wp_mail( $to, $subject, $message); ?>

Related posts

Leave a Reply

3 comments

  1. Yes, If you check the text below the parameter $headers says its (string or array) (optional)

    $to
    (string or array) (required) The intended recipient(s). Multiple recipients may be specified using an array or a comma-separated string.
    Default: None
    
    $subject
    (string) (required) The subject of the message.
    Default: None
    
    $message
    (string) (required) Message content.
    Default: None
    
    $headers
    (string or array) (optional) Mail headers to send with the message. (advanced)
    Default: Empty
    
    $attachments
    (string or array) (optional) Files to attach: a single filename, an array of filenames, or a newline-delimited string list of multiple filenames. (advanced)
    Default: Empty
    

    Source: http://codex.wordpress.org/Function_Reference/wp_mail#Parameters