rad131304 Posted July 16, 2008 Share Posted July 16, 2008 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! Link to comment https://forums.phpfreaks.com/topic/115095-mail-in-php-525-on-windows-2003-with-exchange-2003-mail-headers-issue/ Share on other sites More sharing options...
kenrbnsn Posted July 16, 2008 Share Posted July 16, 2008 Instead of "-r [email protected]", try "-f [email protected]" Ken Link to comment https://forums.phpfreaks.com/topic/115095-mail-in-php-525-on-windows-2003-with-exchange-2003-mail-headers-issue/#findComment-591862 Share on other sites More sharing options...
rad131304 Posted July 16, 2008 Author Share Posted July 16, 2008 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. Link to comment https://forums.phpfreaks.com/topic/115095-mail-in-php-525-on-windows-2003-with-exchange-2003-mail-headers-issue/#findComment-591894 Share on other sites More sharing options...
rad131304 Posted July 16, 2008 Author Share Posted July 16, 2008 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" Link to comment https://forums.phpfreaks.com/topic/115095-mail-in-php-525-on-windows-2003-with-exchange-2003-mail-headers-issue/#findComment-591990 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.