没有标题写wp_mail可以吗?
该功能的用途是
<?PHP wp_mail($to,$subject,$message,$headers,$attachments); ?>
问:我可以像这样使用它吗? <?PHP wp_mail($to,$subject,$message); ?>
解决方法:
是的,如果你查看下面的文字,参数$headers表示它(字符串或数组)(可选)
$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
资料来源:http://codex.wordpress.org/Function_Reference/wp_mail#Parameters
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。