send webpage from php send mail function

This is my code :

<?
//Email start
if ($_POST["r_email"]<>'') {
$ToEmail = 'examples@email.com';
$EmailSubject = 'Email Request via online form';
$mailheader = "From: ".$_POST["r_email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["r_email"]."\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
//Requester details
$MESSAGE_BODY .= "<font face=verdana size=2><u><strong>Requester details:</strong></u>"."<br>";
$MESSAGE_BODY .= "<strong>Name : </strong> ".$_POST["r_name"]."<br>";
$MESSAGE_BODY .= "<strong>Email : </strong> ".$_POST["r_email"]."<br>";
$MESSAGE_BODY .= "<strong>Contact No : </strong> ".$_POST["r_cont"]."<br>";
//Applicants details
$MESSAGE_BODY .= "<u><strong>Applicant details:</strong></u>"."<br>";
$MESSAGE_BODY .= "<strong>Name : </strong> ".$_POST["a_name"]."<br>";
$MESSAGE_BODY .= "<strong>1st email : </strong> ".$_POST["a_e1"]."<br>";
$MESSAGE_BODY .= "<strong>2nd email : </strong> ".$_POST["a_e2"]."<br>";
$MESSAGE_BODY .= "<strong>3rd email : </strong> ".$_POST["a_e3"]."<br>";
$MESSAGE_BODY .= "<strong>Contact No : </strong> ".$_POST["a_cn"]."<br>";
//Company details
$MESSAGE_BODY .= "<u><strong>Applicant details : </strong></u>"."<br>";
$MESSAGE_BODY .= "<strong>Name : </strong> ".$_POST["c_name"]."<br>";
$MESSAGE_BODY .= "<strong>Others company name : </strong> ".$_POST["c_names"]."<br>";
$MESSAGE_BODY .= "<strong>Department/unit : </strong> ".$_POST["c_dept"]."<br>";
$MESSAGE_BODY .= "<strong>Contact : </strong> ".$_POST["c_cont"]."<br>";

mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");

?>

With this code, i'm only able to send simple html to my email.
I would like to send it as webpage. A website in an email. I'm freely can using table, add more graphic on it. Spam email always do this. why not me.. hehe

the "$message_body" make me dificult to create what i want..

thanks..
aihaiaiAsked:
Who is Participating?
 
alain34Connect With a Mentor Commented:
Hello aihaiai,

Could I ask why you are not using phpmailer for this type of developemt?
http://phpmailer.codeworxtech.com/index.php?pg=phpmailer

Regards,

alain34
0
 
ljubiccicaCommented:
Hey there!

Here is a nice tutorial how to send email in php, including html...
http://www.sitepoint.com/article/advanced-email-php/

KR,
ljubiccica
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.