I would like to pass the "$text" variable to the body
of an email message in another php script.
The code is below:
< -- upload.php -- >
if (!$file=fopen(text.txt", "r")) {
echo "Could not open file";
}
else {
$text=fread($file, 100);
fclose($file);
}
< -- mail.php -- >
$to = "[EMAIL PROTECTED]";
$subj = "The Subject";
$body="\nBegin" .
"\n" . quotemeta ($a) .
"\n" . quotemeta ($b) .
"\n" . quotemeta ($c) .
"\nEnd" .
"\n" . $text;
$header="From: " . $email .
"\r\nReply-To: [EMAIL PROTECTED]";
$success = mail ($to, $subj, $body, $header);
I can echo the "$text" variable to my web form, but
not
to the email body of another php script. Is this
possible? How can I get the "$text" variable to
display in the body of my email message? Thanks
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]