【发布时间】:2017-04-11 20:53:02
【问题描述】:
我正在使用带有 CDOSYS 对象的经典 ASP 发送邮件,但我希望信封发件人地址 - 即在 SMTP 期间由 MAIL FROM 指定的信封 - 设置为与消息中的 From 标头地址不同.
这样做的目的是实现VERP。例如,我希望 SMTP 对话类似于:
220 mail.example.com ESMTP
[...]
MAIL FROM: <info+test=example.com@mydomain.test>
250 2.0.0 OK
RCPT TO: <test@example.com>
250 2.0.0 OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
From: Company1 <info@mydomain.test>
To: test@example.com
[...]
在上面的示例中,信封 from 是“info+test=example.com@mydomain.test”,但 From 标头是“info@mydomain.test”。
希望这是有道理的。有什么想法吗?
【问题讨论】:
标签: asp-classic smtp messaging