加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

Php mail() – 优先级类型

发布时间:2020-12-13 21:47:19 所属栏目:PHP教程 来源:网络整理
导读:想知道什么是php mail()优先级类型.我读了这篇 question,我读了php手册, ?php $headers = "MIME-Version: 1.0n" ; $headers .= "Content-Type: text/html; charset="iso-8859-1"n"; $headers .= "X-Priority: 1 (Higuest)n"; $headers .= "X-MSMail-Pri
想知道什么是php mail()优先级类型.我读了这篇 question,我读了php手册,

<?php
    $headers = "MIME-Version: 1.0n" ;
    $headers .= "Content-Type: text/html; charset="iso-8859-1"n";
    $headers .= "X-Priority: 1 (Higuest)n";
    $headers .= "X-MSMail-Priority: Highn";
    $headers .= "Importance: Highn";
    $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

并通过此链接,您将更多地了解邮件功能

http://www.velvetblues.com/web-development-blog/avoid-spam-filters-with-php-mail-emails/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读