mail function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
baz113
Forum Newbie
Posts: 4
Joined: Thu Nov 20, 2003 11:05 am

mail function

Post 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.
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
mlitton
Forum Newbie
Posts: 11
Joined: Sun Sep 21, 2003 4:52 pm
Location: Sweden

Post 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
Post Reply