I am trying to add some design to contents which are in between <<<EOD …EOD; php script.
following is my code :
<?php
$emailSubject='Subject Goes Here';
$to=("me@myemailaddress");
//$to1=("another@theiremailaddress");
//$to2=("athird@anotheremailaddress");
$name1=$_POST['name'];
$number1=$_POST['number'];
$email1=$_POST['email'];
$hear1=$_POST['hear_about'];
$message1=$_POST['mess'];
$type1=$_POST['type'];
$place1=$_POST['wedding_place'];
$guest1=$_POST['guest'];
$mdate1=$_POST['mdate'];
$body =<<<EOD
Name:$name1
Name: $name1
Number: $number1
Email: $email1
How did you hear about us: $hear1
Message: $message1
Type of Photography:$type1
Wedding Venue:$place1
Number of Guests:$guest1
Date Of Wedding:$mdate1
EOD;
$headers = 'MIME-Version: 1.0' . "\\r\
";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\\r\
";
//$headers .= 'Bcc: other-email-addresses' . "\\r\
";
$headers = "From: $email1";
$success = mail($to,$emailSubject,$body,$headers);
//$success = mail($to1,$emailSubject,$body,$headers);
//$success = mail($to2,$emailSubject,$body,$headers);
if($success==true)
{
header("location:thankyou.html");
}
?>
this script will send an email, I want this email to be designed more than just plain text…
Can Anyone help Please?
Many Thanks In Advance