Is it okay to write wp_mail without header?
the usage of the function is
<?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?>
Q: Can I use it like this ? <?php wp_mail( $to, $subject, $message); ?>
Is it okay to write wp_mail without header?
the usage of the function is
<?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?>
Q: Can I use it like this ? <?php wp_mail( $to, $subject, $message); ?>
You must be logged in to post a comment.
Yes, If you check the text below the parameter
$headers
says its(string or array) (optional)
Source: http://codex.wordpress.org/Function_Reference/wp_mail#Parameters
Yes you can use it :
$headers and $attachments are empty by default (they are optionnal).
yes you can use like this
$headers is an optional parameter