Hi,
I have some stored email templates in a Microsoft SQL Table called emails
In the table I have fields for email_subject and email_body
In the body is a standard html email template such as Dear $name, blah blah
If I use ;
$name = Joe Bloggs
$body = $crm_email_body ;
$success = mail("$to", "$subject", "$body", "$header");
The mail works fine but the $name doesn't change to "Joe Blogs" it stays as $name
Is there a way around this?
Thanks
Mark