Тема: Xss-Maıl@ru
Показать сообщение отдельно
Старый 03.08.2007, 20:22   #2
Участник
 
Аватар для flabber
 
Регистрация: 07.11.2006
Сообщений: 1,095

По умолчанию

хоть бы в гугле поискал для начала...это есть во всех мануалах....
PHP код:
<?php 
$to  
= "Mary &lt;mary@example.com>, " ; 
$to .= "Kelly &lt;kelly@example.com>"; 

$subject = "Birthday Reminders for August"; 

$message = ' 
<html> 
    <head> 
        <title>Birthday Reminders for August</title> 
    </head> 
    <body> 
        <p>Here are the birthdays upcoming in August!</p> 
    </body> 
</html>'
; 

$headers  = "Content-type: text/html; charset=windows-1251 \r\n"; 
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n"; 
$headers .= "Bcc: birthday-archive@example.com\r\n"; 

mail($to, $subject, $message, $headers); 
?>
__________________

дом
flabber вне форума