mail()

snapple15

New member
mail()

אני מנסה לשלוח דואר בקוד שבניתי אני מנסה לשלוח בעזרת mail() יש אפשרות לשלוח מכתב ולהגדיר שישתמש בקודי HTML?
 

N i X

New member
מה הכוונה?

"קודי HTML" ? אתה רוצה לשלוח מכתב כ HTML? פשוט רושמים HTML תקני בהודעה... רק ציין
Content-Type: text/html; charset="windows-1255" Content-Transfer-Encoding: quoted-printable​
(לא בטוח שזה מדוייק)
 

N i X

New member
כי אין בheader שזה HTML

$myemail = "[email protected]"; $contactname = "Mister Contact"; $contactemail = "[email protected]"; $message = "hello from happy me"; $subject = "A mail not refused by Hotmail"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: ".$myname." <".$myemail.">\r\n"; $headers .= "To: ".$contactname." <".$contactemail.">\r\n"; $headers .= "Reply-To: ".$myname." <$myreplyemail>\r\n"; $headers .= "X-Priority: 1\r\n"; $headers .= "X-MSMail-Priority: High\r\n"; $headers .= "X-Mailer: Just My Server"; mail($contactemail, $subject, $message, $headers);​
 
למעלה