Re: How can I include a files contents in mail body?

[email protected] (Yasuo Ohgaki) Mon, 04 Feb 2002 11:44:32 +0900
Newsgroups php.lang
Message-ID <[email protected]>
Merlin wrote:
> I understand how to send mail , from the manual,
> <?
> $mailTo = "[email protected]";
> $msgSubject = "Pretty Cool.";
> $xHeaders = "From: [email protected]\nX-Mailer: PHP/".phpversion();
> $message = " Now is the time for all good men to come to the aid of the
> party";
> mail($mailTo, $msgSubject, $message, $xHeaders);
> ?>
> 
> But, I have a file created by another scrip... living in
> "/includes/a_file_created_with_html_code_in_it.txt"
> 
> How can I get the contents of that file into the $message variable so it
> becomes the actual message body?
> 
> I've tried all sorts of ways to 'include' it, but to no avail.
> Could some knowledgeable soul point me in the right direction please?
> 
> Thanks so much
> Robert
> ---
> Quantum Radio: World Music with a difference.
> http://quantum-radio.net.au/Music/
> Now Playing: Srimad Bhagavad Gita - Traditional Indian Selection
> 
> 
> 
> 

Wrong list.
Ask to php-general :)

-- 
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)