Guys i'm really sorry, i don't know how to bring across the text colouring from dreamweaver (i said i was a noob 😢 ) but for some reason it's still not working... I've tried just simplifying the $message part as much as possible, but I can't even get 1 variable to come in, the sendmail.php just stalls and when i take out the $_POST stuff it runs fine and parses the html stuff fine...
Please if anyone can help me resolve the $message issue i'm having i would be most grateful. Thankyou all for your help and patience so far! :o
<?php
function sendMail() {
//recipients
$to = 'stuart@samsales.com.au';
// subject
$subject = 'STIHLPress Order Form';
//message
$message = "
<p>Put the body of the email here, with all your variables</p>" . $_POST['footer'];
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// additional headers
$headers .= 'To: Stuart <stuart@samsales.com.au>' . "\r\n";
$headers .= 'From: STIHLPress < sales@stihlpress.com.au>' . "\r\n";
// and now mail it
if(!mail($to, $subject, $message, $headers)) {
echo "Could not mail from 'sendMail'. Please contact STIHLPress directly.<br />";
return false;
} else {
echo "Mail sent.<br />";
return true;
}
}
?>