Reporting IP Address of MailSite Express Sender

Document ID: 10128

Synopsis

Section 18, line 176 of the expresscfg.asp file facilitates the reporting the IP address of a MailSite user when viewed via Outlook etc.

More Information

Reporting IP Address of MailSite Express Sender Section 18, line 176 of the expresscfg.asp file facilitates the reporting the IP address of a MailSite user when viewed via Outlook etc. Copy and replace the existing section 18 with the following code into the expresscfg.asp file:

'Item 18 - Custom header to add to all outgoing messages
strCustomHeaderName = "X-Originating-IP-and-X-Forwarded-For"
strCustomHeaderValue = Request.ServerVariables("REMOTE_ADDR")+" & 

"+Request.ServerVariables("HTTP_X_FORWARDED_FOR")

It should accommodate for proxys as well.