
20-06-2007, 20:27
|
 |
|
|
חבר מתאריך: 27.12.06
הודעות: 281
|
|
עליך ליצור את ה HTML ולשלוח אותו בתור הטקסט
וכמובן להוסיף Headers
קוד:
<?php
$myname=$_POST['mname'];
$mymail=$_POST['mmail'];
$mymsg=$_POST['mmsg'];
$friendname=$_POST['fname'];
$friendmail=$_POST['fmail'];
$msg_subject='message from web-site';
$message = '<html><body>here come html body</body></html>';
// 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-8-i' . "\r\n";
// Additional headers
$headers .= 'To: ' . $friendname . ' <' . $friendmail . '>' . "\r\n";
$headers .= 'From: ' . $myname . ' <' . $mymail . '>' . "\r\n";
mail($friendmail, $msg_subject, $message, $headers);
?>
|