One of our clients is using a webhost that blocks all emails sent from an unknown i.p. address....basically blocking any email forms being used on their server. The hosts have said for emails to be sent via their server the form needs to act as if the email was sent from the SERVER ip address and not the remote address.

Anyone know any ways to do this

Not sure if I completely understand your problem, but have you looked at

$_SERVER['SERVER_ADDR']

which holds "The IP address of the server under which the current script is executing. "

i know about that but that doesn't change the details in the header, it will still show as the remote address

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.