gpt4 book ai didi

php - 使用 PHPMailer 更改返回路径

转载 作者:可可西里 更新时间:2023-10-31 22:54:25 24 4
gpt4 key购买 nike

有没有办法使用 PHPMailer 更改返回路径

我做了以下但没有用

$mail->AddCustomHeader('Return-path:test@email.co.za');

我正在使用以下语句发送邮件

if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;

} else {
//Building the reporting email to report on all the mails send
echo "Message REPORT sent!\n";
}

我收到了电子邮件,但返回路径没有改变?

最佳答案

下面解决了这个问题,我调整了 Sender 属性,它对我有用。 $mail->Sender = 'test@email.co.za';

关于php - 使用 PHPMailer 更改返回路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3467564/

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