I'm storing some emails in the database, because they are templates and I want to enable admins to edit them. So there are three columns, initialmail, followup, followup2. However, these templates look like this:
Hello $Client, we are contacting you about your $product
etc. After that, send mail will just pickup a random row from the right column and send it. However, I don't know how to enable admins to add/edit e-mails and store variable names rather then values within the database, so sendmail.php will know which variables are there and replace them with correct values. Keep in mind this needs to be easy, considering admins will edit this on site, so I can't have them type ' .$Clientname. '
each time they want a variable stored in the database.
Thank you!