Forum Moderators: coopster
Any body know the answer.
mail('somebodies@address.com', 'Email from PHP', $message, 'From: me@myplace.com');
More info. here;
[php.net...]
Cheers,
BAD
[edited by: coopster at 11:03 am (utc) on Mar. 8, 2005]
[edit reason] hooked up link [/edit]
[$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
What do you think?
Not sure about this, most HTML emails are snt as text as well. Perhaps Outlook only displays the text component when you reply which in your case is missing. Pull apart an HTML email and have a look.
OH yer, What does the 'Email from PHP' do in your mail commandmail('somebodies@address.com', 'Email from PHP', $message, 'From: me@myplace.com');
It's the subject.
Cheers,
BAD