function set_email($email_content, $vars)
{
    $html_mail = '
		<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
			"http://www.w3.org/TR/html4/loose.dtd">
		<html>
		<head>
			<meta http-equiv="content-type" content="text/html; charset=utf-8">
			<title>' . $vars['subject'] . '</title>
			<style type="text/css">
				a:link, a:visited {
					text-decoration: none;
					' . get_email_style('link_style') . '
				}
				
				a:hover {
					text-decoration: underline;
				}
			</style>
		</head>
		
		<body ' . get_email_style('body_main_style') . '>
			
			<table width="100%" cellpadding="0" cellspacing="0" border="0" ' . get_email_style('body_main_style') . '>
				<tr>
					<td ' . get_email_style('template_width') . ' valign="top" align="center">
						<table ' . get_email_style('template_width') . ' border="0" cellspacing="0" cellpadding="0" ' . get_email_style('body_email_style') . '>
						
							<!-- content -->
							<tr>
								<td valign="top" ' . get_email_style('template_width') . ' ' . get_email_style('content_body_style') . '>
									<!-- Content inserted here -->
									' . $email_content . '
									<!-- End inserted content -->
								</td>
							</tr>
							
						</table>
					</td>
				</tr>
			</table>
			
		</body>
		</html>
			';
    return $html_mail;
}
Exemple #2
0
<p <?php 
echo get_email_style('content_text_style');
?>
>
	<strong>Nume:</strong>  <?php 
echo $name;
?>
</p>
<p <?php 
echo get_email_style('content_text_style');
?>
>
	<strong>Email:</strong> <?php 
echo $email;
?>
</p>
<p <?php 
echo get_email_style('content_text_style');
?>
>
	<strong>Mesaj:</strong> <?php 
echo $message;
?>
</p>