有没有办法使用 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/