Jump to content

[SOLVED] Email Templates From Database


steviez

Recommended Posts

Hi,

 

I need to pull my email templates from a database, the only problem is that some of the email templates will have php code in them. Is there anyway this can be done?

 

Here is a sample of one of my email templates used for registration.

 

<html>
<head>
<title>Welcome!</title>
</head>
<body>
<p>Thanks for becoming a member at ".$settings['site_name']." ".$_POST['username']."!<br />
  Your account has been set up, You need to activate your account in order to use it. Please click on the link below to activate your account<br><br>
  <a href='".$settings['site_url']."/validate/".$_POST['username']."/".$validation."'>".$settings['site_url']."/validate/".$_POST['username']."/".$validation."</a>
  </p>
  <P>Please stay tuned and keep an eye out for some new exiting features!</p>
<p>You are receiving this e-mail because you or someone else used your address to sign up on our site.<br/>If you did not sign up on our site, just ignore this message and please accept our apologies.<br/><br/>

Best regards,<br/> </p>
</body>
</html>

 

Thanks in advance

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.