Version: 7

Type: Full Script

Category: Other

License: GNU General Public License

Description: Help you send mail in HTML format , Here you can change the variables as required to suit your needs , please make it sure that the code is on live server (Server Connected to Internet) which can be accessed by http protocal



<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="Author" content="james">
   <meta name="GENERATOR" content="Mozilla/4.75 [en] (Win98; U) [Netscape]">
   <title>sm</title>
<!-- saved from url=(0066)http://www.phpbuilder.com/snippet/download.php?type=snippet&id=535 -->
</head>
<body>
&lt;html>
<br>&lt;title>My Send Mail&lt;/title>
<br>&lt;body>
<br>&lt;?
<br>&nbsp;$username = "James Smith";
<br>&nbsp;$compname = "La La Saloon";
<br>&nbsp;$compphone = "091-080-2275926";
<br>&nbsp;$compid = 11;
<br>&nbsp;$jobtitle = "Hair Stylist";
<br>&nbsp;$email = "james_smith73@yahoo.com";
<br>&nbsp;$Fromname = "La La Salon";
<br>&nbsp;$Fromaddress = "info";
<p>&nbsp;$mailsubject = "You are Selected ! by $compname";
<br>&nbsp;$imgurl = "http://www.geocities.com/james_smith73/lala_pic.jpg";
<br>&nbsp;$template = "http://house1.gomark.com/search/dummy.php";
<br>&nbsp;$image = "&lt;a href='$template'>&lt;img src='$imgurl' border=0>&lt;/a>";
<br>&nbsp;$logo = "&lt;img src='http://www.geocities.com/james_smith73/band3.jpg'>";
<br>&nbsp;$updcv = "http://house1.gomark.com/search/dummy.php";
<p>&nbsp;$msg = "&lt;font face='OCR A Extended' size='2'>Hi $username \n&lt;br>";
<br>&nbsp;$msg = $msg.''."\t We have Received Your CV , and have processed
\n&lt;br> ";
<br>&nbsp;$msg = $msg.''."the same for the post of $jobtitle in $compname
\n&lt;br>";
<br>&nbsp;$msg = $msg.''."&lt;br>";
<br>&nbsp;$msg = $msg.''."\t We are pleased to call you for an Interview
kindly \n&lt;br>";
<br>&nbsp;$msg = $msg.''."fix an appointment by calling us on $compphone
&lt;br>";
<br>&nbsp;$msg = $msg.''."&lt;br>";
<br>&nbsp;$msg = $msg.''."To Know more about $compname Click &lt;a href='$template'>Here&lt;/a>&lt;BR>";
<br>&nbsp;$msg = $msg.''."&lt;br>";
<br>&nbsp;$msg = $msg.''."Best Regards&lt;br>";
<br>&nbsp;$msg = $msg.''."&lt;b>Management&lt;/b>&lt;/font>";
<br>&nbsp;$msg = "&lt;table border=0>&lt;tr>&lt;td>$logo&lt;/td>&lt;/tr>&lt;/table>&lt;table
border=0>&lt;tr>&lt;td>$msg&lt;/td>&lt;td>$image&lt;/td>&lt;/tr>&lt;/table>";
<br>&nbsp;$msg = $msg.''."&lt;br>&lt;font face='OCR A Extended' size='2'>To
Update Your Resume Click&nbsp; &lt;a href='$updcv'>Here&lt;/a>&lt;/font>";
<p>&nbsp;print ("&lt;PRE>");
<br>&nbsp;if (mail($username." &lt;".$email.">", $mailsubject, $msg, "From:
".$Fromname." &lt;".$Fromaddress.">\nContent-Type: text/html; charset=iso-8859-1"))
<br>&nbsp;{
<br>&nbsp; print ("Mail Sent To $username&lt;br>&lt;br>");
<br>&nbsp; print ($msg);
<br>&nbsp;}
<br>&nbsp;else
<br>&nbsp;{
<br>&nbsp; print ("Mail Dead");
<br>&nbsp;}
<br>&nbsp;print ("&lt;/PRE>");
<br>?>
<p>&lt;/body>
<br>&lt;/html>
<br>&nbsp;
</body>
</html>