Re: using text files with email in php

From: Date: Fri, 03 Aug 2001 21:27:10 +0000
Subject: Re: using text files with email in php
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-11049@lists.php.net to get a copy of this message
ok i looked at that again and it will work. Hmm. not a bad idea I will have to try this. "Chris Hobbs" <chobbs@silvervalley.k12.ca.us> wrote in message news:3B6AF96A.4070603@silvervalley.k12.ca.us... > 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, > > > > I want to use one of my php script to send my customer an email however > > I 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? > > > -- > 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.us >

« previous php.db (#11049) next »