Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create email template php

$variables = array();

$variables['name'] = "Robert";
$variables['age'] = "30";

$template = file_get_contents("template.html");

foreach($variables as $key => $value)
{
    $template = str_replace('{{ '.$key.' }}', $value, $template);
}

echo $template;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #email #template #php
ADD COMMENT
Topic
Name
8+7 =