sending e-mail with variables

From: Date: Tue, 26 Jun 2001 19:13:28 +0000
Subject: sending e-mail with variables
Groups: php.general 
Request: Send a blank email to php-general+get-55275@lists.php.net to get a copy of this message
I have a function that is for sending an e-mail to the customer the messages is stored in a mysql table. Then when the function is called it pulls the data into the mail program. My problem is this in the data that is stored in the table the data looks like this "Your webhosting account at $hostname.$domain$tld"; I pull the data into the function like this $subject =$row["msub"]; //"Your webhosting account at $hostname.$domain$tld"; $message .= $row["mline1"]; //"Dear $fullname,\n"; $message .= $row["mline2"];//"Your webhosting account has been created. Please use the\n"; $message .= $row["mline3"];//"following data to log in:\n"; Now my problem is it does not fill in the variables when it sends the e-mail.The reason I am doing this is the end user of this program what's to be able two change what the e-mail says. How can I do this so it fills the variables in. Or am I going about this totally wrong. And I what to send it as a text based e-mail Best regards, Richard mailto:rkurth@pacifier.com

« previous php.general (#55275) next »