
<html>
<head>
</head>
<body>

<h2>Mail()</h3>
<h3>1. Do czego służą sesje.</h3>
Mail jest stosunkowo prostą funkcją - służy do wysyłania maili.

<h3>2. Lista funkcji i zmiennych:</h3>
<ul>
<li>bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )</li>
</ul>

<h3>3. Zadanie</h3>

Stwórzmy stronę www:
<li>mail.php</li>
<pre>
&lt;?php
$to      = 'moj@email.pl';
$subject = 'wysyłam testowo maila ';
$message = 'Treść wiadomości wpisuję tu'."\n".'mogę też użyć entera';
$headers = 'From: innynadawca@prezydent.pl' . "\r\n" .
    'Reply-To: moj@email.pl' . "\r\n" .
    'X-Mailer: ProgramPocztowyNaWwwAutorMK';

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

</pre>
</body>
