Problems with mail()
| From: | Alberto. Sartori | Date: | Wed, 13 Mar 2002 09:40:00 +0000 |
| Subject: | Problems with mail() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12609@lists.php.net to get a copy of this message | ||
Hi guys. I've a big problem using mail() function. My system run under Win2k SP2 italian, with
IIS 5 and PHP 4.1.2 (although I got this prob since 4.1.0). This is my php.ini
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = admin@boiler.com
I've tried to replace SMTP value with 127.0.0.1 or with my subnet IP....nothing to do!
It appears "Warning: Server Error in c:\inetpub\wwwroot\esempi\email.php on line 19"
This is my line 19:
mail("ras78@caltanet.it","hi lamer","all ok?");
It could be a bug? if I run this code under a english version of Win2k all works fine. My SMTP
server in IIS is correctly configured, I'm sure about this!
Best regards, alb