Hello everyone~
I'm a Korean(in ASIA) PHPer.
I have some problems with 'mail()' function in windows2000 and PHP4.0

first I met a error message like this

Warning: Failed to Connect in d:\apache\htdocs\mail2.php on line 3 

OOps ~ so I installed my SMTP services then configured my PHP.ini file like this

[mail function]
SMTP   = localhost   ;for win32 only
sendmail_from = [EMAIL PROTECTED] ;for win32 only
;sendmail_path =      ;for unix only, may supply arguments as well (default is 
'sendmail -t -i')

then I retried mail function.

mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");

but this time I met an another error message ~!

Warning: Server Error in d:\apache\htdocs/test/test.php on line 3

OOPs ~! I'm very sorry about this.
Does anyone have a clear answer ?

Reply via email to