how to send mail with background images

<?php
$to = "kr.krishna1995@gmail.com";
$subject = "hello how are you.";

$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table background='http://www.rapscspl.com/forest/wp-content/uploads/2014/10/teresa-pic.png'>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<form>
</tr>
<tr>
<td>John</td>
<td>Doe</td>

</tr>
</table>
</body>
</html>
";

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\\r\
";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\\r\
";

// More headers
$headers .= 'From: <vikashgupta40@gmail.com>' . "\\r\
";
$headers .= 'Cc: myboss@example.com' . "\\r\
";

mail($to,$subject,$message,$headers);
?>


Comments

Popular posts from this blog

Create New Project in Laravel

How to Get Access of Database of Dynamic Site Without cPanel Details

How to Create Secondary Menu in Squarespace