<html> <head> <title>Отправка анонимной почты</title> </head> <body> <?php $email = $_POST[email]; $subject = $_POST[subject]; $message = $_POST[message]; $from_email = $_POST[from_email]; if (!empty($email) && !empty($from_email)) { @mail($email, $subject, $message, "From: $from_email"); echo 'Письмо отправлено <br>'; } ?> <form method="POST" action=""> <input type="text" name="email"> Кому <br> <input type="text" name="from_email"> От кого <br> <input type="text" name="subject"> Тема <br> <textarea rows="7" cols="44" name="message">Текст сообщения</textarea> <input type="submit" value="Отправить"> </form> </body> </html>