wordpress - How to write wp_mail without header -


is okay write wp_mail without header?

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

q: can use ? <?php wp_mail( $to, $subject, $message); ?>

yes, if check text below parameter $headers says (string or array) (optional)

$to (string or array) (required) intended recipient(s). multiple recipients may specified using array or comma-separated string. default: none  $subject (string) (required) subject of message. default: none  $message (string) (required) message content. default: none  $headers (string or array) (optional) mail headers send message. (advanced) default: empty  $attachments (string or array) (optional) files attach: single filename, array of filenames, or newline-delimited string list of multiple filenames. (advanced) default: empty 

source: http://codex.wordpress.org/function_reference/wp_mail#parameters


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -