标签:php
想知道什么是php mail()优先级类型.我读了这篇question,我读了php手册,
$headers = "MIME-Version: 1.0\n" ;
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
$headers .= "X-Priority: 1 (Higuest)\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "Importance: High\n";
$status = mail($to, $subject, $message,$headers);
?>
但它没有解释我们可以使用的类型. X-Priority:1(Higuest)和X-MSMail-Priority:用于此的高两个不同的单词.我找到的优先级很少.例如:低,中,高,紧急,紧急,关键我们如何使用这种类型.
解决方法:
值:1 =高,3 =正常,5 =低
您无需输入两行,请使用X-MSMail-Priority或X-Priority
Alternative to X-Priority, although X-Priority is preferred. “High”
corresponds to X-Priority: 1, “Normal” is the same as X-Priority: 3,
and “Low” is the same as “X-Priority: 5”. Including both X-Priority
and X-MSMailPriority in the same email header is OK, although it
probably best they agree.
Example:
either
X-MSMail-Priority: High
or
X-Priority: 1
并通过此链接,您将更多地了解邮件功能
标签:php
来源: https://codeday.me/bug/20190729/1568417.html