PHP mail() - How to set Priority?

前端 未结 6 1857
不知归路
不知归路 2020-12-13 07:05

Is there any way to set the priority of PHP mail()? I looked at the online manual but I can\'t find any reference to it.

By priority, I mean High, Normal, Low or 1,

6条回答
  •  臣服心动
    2020-12-13 07:25

    That's usually done by setting following fields in the header:

    • "X-Priority" (values: 1 to 5- from the highest[1] to lowest[5]),
    • "X-MSMail-Priority" (values: High, Normal, or Low),
    • "Importance" (values: High, Normal, or Low).

    See the following example (taken from php's mail function documentation):

     
    

提交回复
热议问题