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

    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

      Still, I get the same problem.

        Yes Dave,
        It exibits the same behaviour.

          my iis doesn't send with mail() either. SMTP is good to go but PHP just isn't configured right somewhere.

            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.

              I solve the problem, i just did a preg replace .

              Anyway thank's for the solution.

              Gune

                Write a Reply...