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.