phpmailer 返回路径
如何在 phpmailer 中设置返回路径? 我有这样的:
$mail = new PHPmailer();
$mail->IsHTML(true);
$mail->SetFrom($_SESSION['user_mail'], $_SESSION['user_name']);
$mail->AddAddress($leverancier_mail, $leverancier_mail);
$mail->AddBCC($config['kopie_mail'], $config['kopie_mail']);
$mail->AddReplyTo($_SESSION['user_mail'], $_SESSION['user_name']);
$mail->Sender = $_SESSION['user_mail'];
当邮件被退回时,它会发送给管理员而不是发件人。我怎样才能让它返回给发件人?
How can I set the Return-path in phpmailer?
I have this:
$mail = new PHPmailer();
$mail->IsHTML(true);
$mail->SetFrom($_SESSION['user_mail'], $_SESSION['user_name']);
$mail->AddAddress($leverancier_mail, $leverancier_mail);
$mail->AddBCC($config['kopie_mail'], $config['kopie_mail']);
$mail->AddReplyTo($_SESSION['user_mail'], $_SESSION['user_name']);
$mail->Sender = $_SESSION['user_mail'];
When an mail is returned it is send to the administrator instead of the sender. How can I make it return to the sender?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PHPMailer 类自动将 Return-path 设置为 From 或 Sender:
PHPMailer class sets Return-path automatically to From or Sender: