使用SwiftMailer和SMTP时,隐藏从电子邮件中收到的信息
我有一个VPS托管,我正在使用SwiftMailer使用另一个托管的SMTP发送电子邮件。 当我向用户发送电子邮件时,源邮件包含我的VPS IP地址和标题中的域,如下所示:
Received: from [ip.ip.ip.ip] (port=•port• helo=mydomain.name) by ....
我能够使用setLocalDomain
向SwiftMailer隐藏该域,但无法即使在SwiftMailer上使用setSourceip
时,更改IP地址。
提示:我无法访问SMTP托管,我只有我的VPS和SMTP凭据。
I have a VPS hosting and I am using SwiftMailer to send emails using an smtp from another hosting.
When I send an email to the user the source mail contains my VPS ip address and domain in headers, like the following below:
Received: from [ip.ip.ip.ip] (port=•port• helo=mydomain.name) by ....
I was able to hide the domain from swiftmailer using setLocalDomain
, but wasn't able to change the IP address even when using setSourceIp
on SwiftMailer.
Hint: I don't have access to smtp hosting, I have just my VPS and smtp credentials.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论