Create html dynamic email in php
In this post we will show you Create html dynamic email in php, hear for Create html dynamic email in php we will give you demo and example for implement.
code for Create html dynamic email in php
index.php file ::
function get_include_contents($filename, $variablesToMakeLocal) { extract($variablesToMakeLocal); if (is_file($filename)) { ob_start(); include $filename; return ob_get_clean(); } return false; } $data = array("place"=>"londone","start_time"=>"Today"); $html_val = get_include_contents('templet.php', $data); echo($html_val);
templet.php file ::
<table width='600px' cellpadding='0' cellspacing='0'> <tr> <td bgcolor='#ee55ee'> <img src='onlinecode.png' /> </td> </tr> <tr> <td bgcolor='#fff55f' bordercolor='#ee55ee'> <div style='border:1px solid #eeeeee;font-family:Segoe UI,Tahoma,Verdana,Arial,sans-serif;padding:20px 10px;'> <p style=''>This email is to remind you that you have an upcoming meeting with onlinecode Team at <b><?php echo $place ?></b> on <b><?php echo $start_time ?></b>.</p> <p>Thanks</p> <p>onlinecode Team</p> </div> </td> </tr> </table>
Hope this code and post will helped you for implement Create html dynamic email in php. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org