send webpage from php send mail function

This is my code :

//Email start
if ($_POST["r_email"]<>'') {
$ToEmail = '';
$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..

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hey there!

Here is a nice tutorial how to send email in php, including html...

Hello aihaiai,

Could I ask why you are not using phpmailer for this type of developemt?



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.