Re: using text files with email in php
| From: | Chris Hobbs | Date: | Fri, 03 Aug 2001 19:20:10 +0000 |
| Subject: | Re: using text files with email in php | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11047@lists.php.net to get a copy of this message | ||
How about this in your main script...
include 'textfile.php';
And then in textfile.php:
$message = "
Hello $name,
Your bill for this month is $amount.
{etc., etc.}
";
You could then use $message in your mail() command.
Would that work for you?
CrossWalkCentral.net wrote:
Hello,-- Chris Hobbs Silver Valley Unified School District Head geek: Technology Services Coordinator webmaster: http://www.silvervalley.k12.ca.us/~chobbs/ postmaster: chobbs@silvervalley.k12.ca.usI want to use one of my php script to send my customer an email howeverI want it to send the the contents of a text file in the same directory. so that way all I have to do is modify the test file if I want it changed w/o changing the php script. I would also like to make variables in this text document so that I can have the email personalized. Any one have any ideas on how to do this?