?!
    ~
Advanced Hosters -

tvsm22
: 03.03.2008
: 551
# : 19, 2012 11:32 am
, email, . , , .

.

?

, .
sabirovsk.ru -

Codd
: 13.01.2011
: 186
# : 06, 2012 7:26 am
:
<?php

#
$email_list_file = 'email.txt';

# email
$location_url = 'http://ya.ru';

#
$from = ' <[email protected]>';

#
$mail_title = ' xxx.ru';

#
$mail_body = ' !';


    if ( ($email = trim($_POST['s_email']) ) )
    {
        if ( !empty($email) && filter_var($email, FILTER_VALIDATE_EMAIL) )
        {
            $headers= "MIME-Version: 1.0\r\n";
            $headers .= "Content-type: text/html; charset=utf-8\r\n";
            $headers .= "From: $from \r\n";

            mail($email, $mail_title, $mail_body, $headers);

            # email email.txt
            file_put_contents($email_list_file, $email . "\n", FILE_APPEND);

            #
            header('Location: ' . $location_url);
        }
        else
        {
            echo ' email';
        }

    }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title></title>
</head>
<body>

<form action="" method="POST">
    <input type="text" name="s_email">
    <input type="submit" value="">
</form>
</body>
</html>

    ~