View Single Post
ישן 21-01-07, 00:47   # 1
בניה
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: נחושה
הודעות: 3,434

בניה לא מחובר  

יש פרמטר לא חובה לפונקציה MAIL ששולח headers שלך עם ההודעה.
מה זה אומר? אם אתה לא יודע אז לא משנה.
אבל כדאי לשלוח HTML תעשה ככה:
PHP קוד:
<?php
$to  
'aidan@example.com';
$subject '&auml;&aring;&atilde;&ograve;&uacute; HTML';
$message '
<h1>&ntilde;&uacute;&iacute; HTML</h1>
<br />
<br />
<marquee>asddasd</marquee>
'
;

// To send HTML mail, the Content-type header must be set
$headers  'MIME-Version: 1.0' "\r\n";
$headers .= 'Content-type: text/html; charset=windows-1255' "\r\n";
// Mail it
mail($to$subject$message$headers);
?>
  Reply With Quote