Hello, On 10/05/2002 02:21 PM, Francisco Murillo Montoya wrote: > Hello; > > I have PHP 4.2.3 on Windows 2000 advanced, and when > I try to use the mail funtion, the server returns an error. > > <? > mail("[EMAIL PROTECTED]","Formulario","cuerpo"); > ?> > > The page sais: Warning: Server error in c:\url\file.php on line 2. > > I have Imail as Mail Server. Do you know why this happen?
Maybe is a bug in the mail() function. The error messages are not very useful. Maybe you need additional From: headers. Anyway, if it still fails, try this class that comes with the smtp_mail() function that is wrapper arround the class that emulates the mail() function. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php