|
|
|
| Скрипт отправки почты:
<?php
$to = "Mary <mary@example.com>, " ;
$to .= "Kelly <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);
?>
|
А как отправить почту на адреса взятые:
1. из базы
2. из текстового файла? | |
|
|
|
|
|
|
|
для: 123php
(11.01.2006 в 14:38)
| | В цикле сформировать несколько заголовков
<?php
$headers .= "Bcc: birthday-archive@example.com\r\n";
?>
|
подставляя в качестве e-mail адреса из базы данных или файла. | |
|
|
|