Gmail是否不允许发件人设置返回路径值以接收退回邮件? [英] Does Gmail not allow sender to set a return path value to receive bounce messages?
问题描述
我使用Swift Mailer检查退回的邮件。我为退回邮件创建了一个单独的帐户,但是,当我设置返回路径时,它不允许将退回邮件发送到该帐户。这是正常的还是代码错误?
$ verp ='bounces-'。 str_replace('@','=',$ row ['ReplyTo'])。 @ gmail.com;
$ b $ message = Swift_Message :: newInstance()
- > setSubject($ row ['Subject'])
- > setFrom(array($ row ['ReplyTo '] => $ row ['FromName']))
- > setReturnPath($ verp)
- > setBody($ html,'text / html')
- > ; addPart($ txt,'text / plain');
现在我正在使用VERP,它似乎是要找到一个送货错误?但不是用于将邮件发送到反弹邮件帐户? 是的,这是正常的。当通过Gmail的SMTP服务器发送电子邮件时,它会强制返回路径成为您发送的帐户。
您唯一的解决方法是搜索允许你可以设置返回路径。
I am using Swift Mailer to check for bounced messages. I have created one separate account for bounce messages, however when I set the return path, it does not allow the bounce message send to that account. Is it normal or is it a code error?
$verp = 'bounces-' . str_replace('@', '=', $row['ReplyTo']) . '@gmail.com';
$message = Swift_Message::newInstance()
->setSubject($row['Subject'])
->setFrom(array($row['ReplyTo'] => $row['FromName']))
->setReturnPath($verp)
->setBody($html, 'text/html')
->addPart($txt, 'text/plain');
I am now using VERP, it seems that it is to locate a delivery error? But not for sending the message to a bounce mail account?
Yes, that is normal. When sending email through Gmail's SMTP servers, it will force the return-path to be the account you are sending from.
Your only solution is to search for a provider which allows you to set the return-path.
这篇关于Gmail是否不允许发件人设置返回路径值以接收退回邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!