document.write("
<?php
$to = 'recipient@somecompany.com';
$subject = 'The email subject';
$message = 'Learning how to send email in a PHP';
$headers = 'From: you@yourcompany.com' . "\\r\\n" .
'Reply-To: you@yourcompany.com' . "\\r\\n";
mail($to, $subject, $message, $headers);
echo "Email sent";
266.php - Snippet hosted by \"Cacher\"
");