$id = $_GET["id"];
$prog = $_GET["prog"];
$fam = $_GET["fam"];
$nam = $_GET["nam"];
$otch = $_GET["otch"];
$god = $_GET["god"];
$tel = $_GET["tel"];
$ml = $_GET["ml"];
// $to ="alexey@leonchik.ru";
// $to ="intel_ussur@mail.ru";
$to ="alexey.leonchik@mail.ru";
$mess = $n1 . " : " . $n2 . "\r\n" .
$schet1 . " : " . $schet2 . "\r\n" .
$fam . " " . $nam . " " . $otch . "\r\n" . $pochta;
$mess = "Подписка на программу " . $prog . "\r\n\r\n" .
$fam . " " . $nam . " " . $otch . ", год рождения " . $god . "\r\n\r\n" .
$tel . "\r\n" .
$ml;
if($ml != "tut-moy@mail.ru" && $ml != null) {
mail($to, "Подписка на " . $prog,
$mess, "From: alexey@leonchik.ru \nContent-type: text/plain; charset=\"utf-8\"\n");
}
Так, можно послать почту в HTML формате:
/* получатели */
$to= "Mary " . ", " ; //обратите внимание на запятую
$to .= "Kelly ";
/* тема/subject */
$subject = "Birthday Reminders for August";
/* сообщение */
$message = '
Birthday Reminders for August
Here are the birthdays upcoming in August!
Person Day Month Year
Joe 3rd August 1970
Sally 17th August 1973
';
/* Для отправки HTML-почты вы можете установить шапку Content-type. */
$headers= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* дополнительные шапки */
$headers .= "From: Birthday Reminder \r\n";
$headers .= "Cc: birthdayarchive@example.com\r\n";
$headers .= "Bcc: birthdaycheck@example.com\r\n";
/* и теперь отправим из */
mail($to, $subject, $message, $headers);