Continuation, still can't get script to send.
I posted a script and was told that I needed to tell the scrip to pass along html. I have tried at least a dozen or so ways to do this with variations of these two lines but all attempts lead to the script bombing out and not sending anything through the process.
Here are the two lines I have been adding, I have tried a dozen variations with or without dots, \r\n, single quotes, double, etc.. Tried placing all of these variations above and at the end of the variables but every version I try bombs the script and I get no email. Can someone give me a pointer as to how to get this to send the html and still not stop the script. I know I am a rookie but if you read back you will see that I do spend hours reading and trying things before I come here. Hopefully I can get this thing to pass along the info I need so I can finish it up. Thanks, Scott.
Here are the two lines of code I have been dissembling and reassembling for the last two days:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
Here is the script I have been working with:
<?php
$from="orderform@xxxxxxxxxxx.com";
$email="info@xxxxxxxxxx.com,['Sender']";
$subject=$_POST['Subject'];
$headers="Content-type: text/html";
$message=$_POST['']."
Company Name = ".$_POST['CompanyName']."
Company Address = ".$_POST['CompanyAddress']."
Company Phone = ".$_POST['CompanyPhone']."
Company Email = ".$_POST['CompanyEmail']."
Company Website = ".$_POST['URL']."
Contact Name = ".$_POST['ContactName']."
Contact Phone = ".$_POST['ContactPhone']."
Sender = ".$_POST['Sender']."
".$_POST['']."
Message from Sender = ".$_POST['Message']."
".$_POST['']."
RedWithGreenXXS = ".$_POST['RedGreenXXS']."
RedWithGreenXS = ".$_POST['RedGreenXS']."
RedWithGreenS = ".$_POST['RedGreenS']."
RedWithGreenM = ".$_POST['RedGreenM']."
RedWithGreenL = ".$_POST['RedGreenL']."
RedWithGreenXL = ".$_POST['RedGreenXL']."
RedWithGreenXXL = ".$_POST['RedGreenXXL']."
RedWithGreenXXXL = ".$_POST['RedGreenXXXL']."
RedWithBlueXXS = ".$_POST['RedBlueXXS']."
RedWithBlueXS = ".$_POST['RedBlueXS']."
RedWithBlueS = ".$_POST['RedBlueS']."
RedWithBlueM = ".$_POST['RedBlueM']."
RedWithBlueL = ".$_POST['RedBlueL']."
RedWithBlueXL = ".$_POST['RedBlueXL']."
RedWithBlueXXL = ".$_POST['RedBlueXXL']."
RedWithBlueXXXL = ".$_POST['RedBlueXXXL']."
RedWithWhiteXXS = ".$_POST['RedWhiteXXS']."
RedWithWhiteXS = ".$_POST['RedWhiteXS']."
RedWithWhiteS = ".$_POST['RedWhiteS']."
RedWithWhiteM = ".$_POST['RedWhiteM']."
RedWithWhiteL = ".$_POST['RedWhiteL']."
RedWithWhiteXL = ".$_POST['RedWhiteXL']."
RedWithWhiteXXL = ".$_POST['RedWhiteXXL']."
RedWithWhiteXXXL = ".$_POST['RedWhiteXXXL'];
mail ( $email, $subject, $message, $headers, "From:".$from );
Print "your message has been sent";
?>
Thanks again for your continued support. Scott
