Well, In admin panel I'm going to create a custom Email Template. For example... 1) Registration Confirmation 2) Forgot Password etc...
Now let's talk about Registration Confirmation.
After successfully register I'm (admin) sending a confirmation email which I want to edit from admin panel. So my confirmation text is look like this which I save it as .tpt file :
Confirmation text with php code:
<p>Hello $fname $lname, Thanks for your registration in our site Following is your login info.<p/>
<p>Username : <strong>$email</strong> <br/> Password : <strong>$password</strong> </p> <br/> Please click on the link to active your acccount. <a
href='www.//mysite.com/activeAccount.php?code=$key&gonona=$userid'>Active My Account</a> </p>
<p>Thank You.<br/>Support Team <br/>www.//mysite.com/</p>";
In Register.php file I just call this .tpt file when I sending a email message using...
$message = file_get_contents("templates/email_verification.tpt", true);
In admin panel when I want to edit it I just call it with $file_content = file_get_contents($file);
function in html textarea field.
So what I want is...
When I send the confirmation message from Register.php page I got text with php code(variable e.g. $fname, $lname) in my email addresss which I don't want. It's should be all plain text. It's should be get the php variable (e. g. $fname, $lname, $email, $password, $key, $userid
etc..) value from Register.php page and send it to email address...
How can I do this ? any solution or Idea are Most Welcome :)
Note: Sorry for my bad English language and lack of Php knowledge.