Click to See Complete Forum and Search --> : mail function in Windows 2000


Anon
09-18-2001, 01:47 PM
Hello everyone,

I have a problem with the mail function.
My properties are;
Windows 2000 Server, PHP4.1, Apache web server.

1. My mail function works for some thing like this,
mail($to,"subject","$message\r\n$message2");

2. But when I have a compley body part which is a text description. My SMTP sdoes not send the mail and instead crashes the web server. My error log in my SMTP server says

-------------
354 Enter mail. end with "." on a line by utself
Error [10054] Connection reset by peer
SMTP connection with IP address ended ID= (some value)
----------------

Can some one help me what is wrong,

Thanking in advance.

Always,
Guneshwar.M

phpjuggler
09-19-2001, 03:30 AM
Hi,
i have a workaround for you. Simply install blat.exe and give this nice little tool the parameters of your mail-server.
Then put blat.exe as your mailer in php.ini.

Hope this helps.
Greetz
juggler

Anon
09-19-2001, 08:05 AM
Still, I get the same problem.

ame12
09-19-2001, 08:28 AM
Does IIS exhibit the same behavior?

Dave


==================================
http://badblue.com/helpphp.htm
Easiest PHP web server for Windows
==================================

Anon
09-19-2001, 08:48 AM
Yes Dave,
It exibits the same behaviour.

Anon
09-19-2001, 10:33 PM
my iis doesn't send with mail() either. SMTP is good to go but PHP just isn't configured right somewhere.

Anon
09-21-2001, 06:05 PM
did you read the error message at all???

just put

\n.\n

at the end... SMTP requires a . on its own line signifying the end of message.

Anon
09-21-2001, 09:47 PM
I solve the problem, i just did a preg replace .

Anyway thank's for the solution.

Gune