1

I am looking to modify a form that allows a user to input their email address into a form, and when submitted, sends an email to a mailing list company, with the from address set to the inserted email address, inserting the client email address into a newsletter mailing list.(This is done with their permission, we are the only people who have access to the mailing list)

I do this currently using the System.Net.Mail.MailMessage class.

I am looking to modify this code to send the IP address of the client in the email header, instead of our servers IP, to allow us to focus our newsletters based on what country the client is from.

The email service we are using records the IP address from the Email header, so I am looking for a way to modify this before sending the email to the service.

4

1 回答 1

0

据我所知,没有用于 SMTP 的“IP 地址”标头 - 远程服务器可能只会查看连接来自哪个 IP 地址,您对此无能为力(除了弹跳它关闭了不同的服务器)

您在邮件客户端中看到的标头不会是原始请求中发送的所有标头,并且可以由邮件服务添加额外的标头。

于 2013-05-23T15:22:20.143 回答