<?php
$to = $_POST['emai'] ;
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
PHP:<?php $to = $_post['emai'] ; $subject = 'the subject'; $message = 'hello'; $headers = 'from: [email protected]' . "\r\n" . 'reply-to: [email protected]' . "\r\n" . 'x-mailer: Php/' . Phpversion(); mail($to, $subject, $message, $headers); ?>