gpt4 book ai didi

wordpress - 如何写没有标题的wp_mail

转载 作者:可可西里 更新时间:2023-11-01 00:14:39 25 4
gpt4 key购买 nike

wp_mail 可以不用header 写吗?

函数的用法是 <?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

关于wordpress - 如何写没有标题的wp_mail,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17985861/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com