Thanks mate,
I eventually figured it out by trial and error and ended up with something similar to what you had. [$mail_message = '<html>Hello,<br>
Thanks for choosing xyz. This email confirms that your order has been successfully
submitted and has been received by us, please read it carefully and save it for
future reference.<br>
<br>
<strong><font size="5">Order Details:<br>
</font></strong>
<hr>
<br>
Customer ID :</html>';
$mail_message .=$id;
$mail_message .='<html><br>
Date : </html>';
$mail_message .=$date;......]
I now have the script working and mailing out very nicely formated messages. The only problem is that there is some problem with the content type I think?
I'm using this:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to, $subject, $mail_message, $headers);
Outlook displays the message but when you reply it won't display the whole message below you reply.
Maybe I need additional or new headers?:
$headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";
and:
$boundary = '-----=' . md5( uniqid ( rand() ) );
What do you think?
I think more trial and error is the call!
OH yer, What does the 'Email from PHP' do in your mail command
mail('somebodies@address.com', 'Email from PHP', $message, 'From: me@myplace.com');
Cheers