PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 19th, 2007, 04:25 PM
acborsi's Avatar
acborsi acborsi is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Toronto, Ontario, Canada
Posts: 126 acborsi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m
Reputation Power: 2
Send a message via MSN to acborsi Send a message via XFire to acborsi
PHP, IIS and mail()

Greetings All,

I'm attempting to setup a web server at work; well we've got the web server part of it working however we can't seem to get our php apps to send out email.

We've set it up on IIS (I'd have preferred Apache, but it wasn't my call) and we're attempting to point it to our Exchange server to send our emails using the mail() function

when I run the test app it runs without any errors the server logs don't show much or anything at all and we're baffled as to why we're not seeing anything come back.

Its not even our firewall or Barracuda system we've checked those logs and they're all squeaky clean.

we've also tried setting up the SMTP server on IIS as well.. but we shouldn't have to have that going if we're telling the php.ini file to go to our exchange server.

we've setup relays on our exchange server as many documentation I've come across online have suggested... but still nothing.


I was just wondering if any one has had any experience installing PHP 5 on IIS and getting the mail functions to work.


any and all help on this matter would be greatly appreciated.

if you need more details or I wasn't quite clear about something please let me know and I'll attempt to clarify.

Thank you kindly,

Reply With Quote
  #2  
Old April 20th, 2007, 07:18 PM
KKmaddog KKmaddog is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 63 KKmaddog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 18 m 28 sec
Reputation Power: 2
does your mail server need a username and password to access it?
__________________
I drunk red bull and grew wiings!!!

Reply With Quote
  #3  
Old April 20th, 2007, 10:10 PM
Rich's Avatar
Rich Rich is offline
Administrator
Developer Shed Admin.
 
Join Date: Apr 2007
Location: Fort Lauderdale, FL
Posts: 160 Rich User rank is Private First Class (20 - 50 Reputation Level)Rich User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 49 m 8 sec
Reputation Power: 10
Quote:
Originally Posted by acborsi
Greetings All,

I'm attempting to setup a web server at work; well we've got the web server part of it working however we can't seem to get our php apps to send out email.

We've set it up on IIS (I'd have preferred Apache, but it wasn't my call) and we're attempting to point it to our Exchange server to send our emails using the mail() function

when I run the test app it runs without any errors the server logs don't show much or anything at all and we're baffled as to why we're not seeing anything come back.

Its not even our firewall or Barracuda system we've checked those logs and they're all squeaky clean.

we've also tried setting up the SMTP server on IIS as well.. but we shouldn't have to have that going if we're telling the php.ini file to go to our exchange server.

we've setup relays on our exchange server as many documentation I've come across online have suggested... but still nothing.


I was just wondering if any one has had any experience installing PHP 5 on IIS and getting the mail functions to work.


any and all help on this matter would be greatly appreciated.

if you need more details or I wasn't quite clear about something please let me know and I'll attempt to clarify.

Thank you kindly,


I cant help you with the mail() functions on IIS/Windows, but I would suggest that if you are unable to get it to work, you can always try using an SMTP class to replace the mail functions..

Reply With Quote
  #4  
Old April 20th, 2007, 10:42 PM
KKmaddog KKmaddog is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 63 KKmaddog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 18 m 28 sec
Reputation Power: 2
yer i was going to suggest that. I use a PEAR mail script to send mail because my mail server needed username and password.

Reply With Quote
  #5  
Old April 24th, 2007, 07:54 PM
acborsi's Avatar
acborsi acborsi is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Toronto, Ontario, Canada
Posts: 126 acborsi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m
Reputation Power: 2
Send a message via MSN to acborsi Send a message via XFire to acborsi
Thumbs up sweet!

Quote:
Originally Posted by KKmaddog
does your mail server need a username and password to access it?

nope... but was one of the first things I thought of ;) TY

Quote:
Originally Posted by Rich
I cant help you with the mail() functions on IIS/Windows, but I would suggest that if you are unable to get it to work, you can always try using an SMTP class to replace the mail functions..

We thought about using this intricate PHPMailer app that my manager came across, but luckily we no longer have to. TY

Quote:
Originally Posted by KKmaddog
yer i was going to suggest that. I use a PEAR mail script to send mail because my mail server needed username and password.



Thank you guys for your help.
I actually solved this, well I don't quite know what I did... but when IIS was installed... a different php.ini file was used.. I usually use the regular php.ini-inst or something like that.. but a different version was used.. Don’t know from where, as I wasn't the one who installed IIS...

however I got it in my head that I'd replace the php.ini file with the one I usually use and just alter a few of the recommended settings for IIS... and.. it worked... I think it had something to do with the modules it was loading the other ini file had almost all the modules loading and there were some there that I hadn't seen before... so I suspect that that was it.. Either way.. it is working now..

and it's supposed to be as simple as it is with Apache on a windows machine.. set the SMTP server.. port.. and you're good to go.. maybe a few firewall settings on your Exchange/SMTP/Barracuda server but that's about it..

I was quite relieved, but also annoyed that the solution was so simple... lol as it is always the case.


Again, thank you for your help guys!
__________________
- Adam

--------
In the realms Unseen, Lives are cruelly governed by Zeroes and Ones.

Reply With Quote
  #6  
Old April 25th, 2007, 05:31 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,727 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 4 m 45 sec
Reputation Power: 6
Can't provide any help myself - but have you considered contacting the Windows PHP mailing list - or even just the general one for some help?

Reference:
http://www.php.net/mailing-lists.php
__________________
life is a game.... Have fun
-----------------------------
http://www.phpwomen.org
strength in unity

PHPCommunity IRC
#phpc on freenode

Reply With Quote
Closed Thread

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP, IIS and mail()


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway