php3-list | 2000051
Date: 05/03/00
- Next message: Mohamed AMTOUN: "[PHP3] where can I get php_mssql70.dll not MySQL ??"
- Previous message: DeLess, Chris: "RE: [PHP3] PHP Editor - Free world for your php server script sid e !!! FREE DOWNLOAD !!!"
- Maybe in reply to: Paul Fernandez: "[PHP3] newbie mail script question"
- Next in thread: Zack Beatty: "RE: [PHP3] newbie mail script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think you need to include the from header as well. Like this:
mail($email, $title, $body, "From: blah <email protected>");
---------- Original Message ----------------------------------
From: Paul Fernandez <paul <email protected>>
Date: Wed, 03 May 2000 08:19:53 -0700
>Hello,
>
>I have a form that passes about 30 variables into a php script... the
>error logs say, "Premature end of script headers:
>/usr/local/apache/cgi-bin/travel.php"
>
>Basically it looks like this:
>
>#!/usr/local/bin/php
><?php
> $str_recipient = travel <email protected> ;
> $str_subj = $name ;
> $str_msg = "Travel plans for $name:\n\n"
>. "bla bla bla"; <--I concatenate all the variables into $str_msg
>
> mail($str_recipient,$str_subj,$str_msg);
>
> echo "Mail has been sent.";
>?>
>
>Thanks in advance
>Paul
>San Diego, CA
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
_______________________________________________________
Site Design, Hosting, and E-Commerce at www.webpipe.net
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mohamed AMTOUN: "[PHP3] where can I get php_mssql70.dll not MySQL ??"
- Previous message: DeLess, Chris: "RE: [PHP3] PHP Editor - Free world for your php server script sid e !!! FREE DOWNLOAD !!!"
- Maybe in reply to: Paul Fernandez: "[PHP3] newbie mail script question"
- Next in thread: Zack Beatty: "RE: [PHP3] newbie mail script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

