Jump to content

mail() in PHP 5.2.5 on Windows 2003 with Exchange 2003 (mail headers issue)


rad131304

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!

 

messages aren't reaching exchange now (i went back to my old "-r" envelope but still not being recieved by exchange anymore) ... i guess it's back to square one.  No idea why it's not receiving the messages now - i don't recall changing a setting (although I must have if i'm further behind than I was before) .... oh the joys of windows servers.

I'm back to getting rejected by IMF.  I had commented out sendmail_from = [email protected] in php.ini.

 

using either of the following code,

 

$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]");

or

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

 

returns the same result - no success or failure of mail() and rejection by IMF.  both the user in php.ini and the user in my envelope are valid for my exchange server.  The rejection record is listed under the user in the php.ini file.

 

the error message in exchange is "SMTP:Message rejected by Intelligent Message Filter"

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.