Jump to content


Photo

mail


  • Please log in to reply
3 replies to this topic

#1 phporcaffeine

phporcaffeine
  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 13 September 2006 - 11:33 PM

Anyone ever try to get php to bounce mail off of a MS Exchange server?  Exchange will let php send mail that is all within the same domain ( someone@mydomain.com to something@mydomain.com) but it won't allow off domain mail ( someone@mydomain.com to somthing@earthlink.net).

Anyone have any ideas?
Thanks,

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 13 September 2006 - 11:49 PM

I'd imagine this is an exchange config issue, not a php issue, however, you could make sure you're using a decent set of headers.

Google bought up a lot of results on this topic... php +mail +exchange +headers

Regards
Rich
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#3 phporcaffeine

phporcaffeine
  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 14 September 2006 - 01:57 PM

For anyone that is interested in the fix:

What I had to do was tell Exchange that the server running PHP was allowed to relay off the Exchange server.  All php needs to do is relay, so once you allow it then everything should work.

In order to add:

Goto exchange system manager (Exchange 7 // Win 2K3) Then navigate to servers >> protocols >> SMTP Virtual Server and click the relay tab.  Next add the machine ip address that has PHP on it.  BE CAREFULE NOT TO ALLOW EVERYONE TO RELAY.  "Deny relay except the list below" is what you want.  Otherwise you'll be an open relay mail server and you'll be a SPAM host to the world.
Thanks,

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com

#4 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 14 September 2006 - 02:02 PM

Thanks for posting back phpORcaffine.

Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users