|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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, |
|
#2
|
|||
|
|||
|
does your mail server need a username and password to access it?
__________________
I drunk red bull and grew wiings!!! |
|
#3
|
||||
|
||||
|
Quote:
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.. |
|
#4
|
|||
|
|||
|
yer i was going to suggest that. I use a PEAR mail script to send mail because my mail server needed username and password.
|
|
#5
|
|||||
|
|||||
|
Quote:
nope... but was one of the first things I thought of ;) TY Quote:
We thought about using this intricate PHPMailer app that my manager came across, but luckily we no longer have to. Quote:
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. |
|
#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 |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP, IIS and mail() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|