email with variables

From: Date: Sat, 23 Jun 2001 00:17:21 +0000
Subject: email with variables
Groups: php.general 
Request: Send a blank email to php-general+get-54945@lists.php.net to get a copy of this message
I have three different e-mail messages in my program in functions. That I would like to figure a way for the program user to be able to edit this e-mail messages to there liking without having to mess with the code. Now I have figured out with the help of this user group how to do it with placeholders in a template but that creates an html e-mail and I what it to be a text based e-mail. If you look at the code below you will see there are variables in the message. Any ides on how I should go about this Just point me in the right direction $subject = "New Customer at $hostname.$domain$tld"; /* message*/ $message .="This webhosting account has been created. Please Add the DNS records \n"; $message .="Domain: $hostname.$domain$tld\n"; $message .="IP-Address: $baseip\n"; $message .="Username: $username\n"; $message .="Password: $password\n"; If ($selldatabase == "YES") { $message .="Mysql Database: $userdatabase\n"; $message .="Mysql Username: $newuser\n"; $message .="Mysql Password: $newuserpass\n"; Best regards, Richard mailto:rkurth@pacifier.com

« previous php.general (#54945) next »