Jump to content

mail() failure in PHP 5.2.5 on Windows 2003 w/ Exchange (headers problem)


Recommended Posts

I am attempting to get an Echange 2003 server to allow PHP to use it to relay messages.  I know the two are talking to each other because IMF is rejecting the messages - I'm guessing it doesn't like my headers since the rejeciton is by IMF, but I'm not sure what the problem is.

 

$headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail("[email protected]","test subject","test message",$headers,"-r [email protected]");

 

[email protected] is a valid exchange email address for this server.

 

Help would be appreciated!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.