Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] newbie mail script question From: Jason Cox (jasonc <email protected>)
Date: 05/03/00

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>