简体   繁体   English

PHP Mail,多个其他参数

[英]PHP Mail, multiple additional paramaters

I have a small mail script I'm developing for work and need to set multiple additional parameters in the mail() function. 我有一个正在工作的小型邮件脚本,需要在mail()函数中设置多个其他参数。

I currently have it looking like this: 我目前看起来像这样:

mail($too,$subject,$message,$headers,"O DeliveryMode=b", "-fscheduling@website.com")

As you can see I need both O DeliveryMode=b and -fscheduling@website.com included in the additional parameters, I've tried multiple different formats but it seems it will only accept one or the other. 如您所见,我需要在附加参数中同时包含O DeliveryMode = b和-fscheduling@website.com,我尝试了多种不同的格式,但似乎只接受其中一种。

mail only accepts one argument for $additional_parameters . mail只接受$additional_parameters一个参数。 You are putting two with: 您将两个放在:

"O DeliveryMode=b", "-fscheduling@website.com"

Does this work? 这样行吗?

"-O DeliveryMode=b -fscheduling@website.com"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM