Page 1 of 1

mail function

Posted: Thu Nov 20, 2003 11:05 am
by baz113
I'm trying to use the php mail function.

i define $email, $subject, $message and just call the mail function:

mail( $email, $subject, $message );

it sits there for a while, then returns a CGI error, saying something about incomplete headers.

Does anyone know what the problem might be?

Thanks.

Posted: Thu Nov 20, 2003 11:59 am
by Nay
You might want to post the complete script if you want us to help. It might be some glitch along the line. Anyhow, is this the only problem with functions? If not maybe your PHP is not compiled as an Apache module but a CGI one and so on.

Incomplete headers, what does it really say? I'm sure it's something like: Warning: Imcomplete headers on line 94 of mail.php or so.

-Nay

Posted: Thu Nov 20, 2003 12:12 pm
by mlitton
There are some neat mailfunctions available on php.net. They're faster and have nice features that the original mail function doesn't include