Guest User

Untitled

a guest
Oct 18th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?
  2. $to      = 'admin@localhost';
  3. $subject = 'the subject';
  4. $message = 'hello';
  5. $sender = $_POST['name'];
  6. $headers = 'From: postmaster@localhost' . "\r\n" .
  7.     'Reply-To: admin@localhost' . "\r\n" .
  8.     'X-Mailer: PHP/' . phpversion();
  9.  
  10. mail($to, $subject, $message, $headers);
  11. ?>
  12. <html>
  13. <head>
  14. <title>mailed to admin</title>
  15. </head>
  16. <body>
  17. successfully mail sent ot the web master
  18. </body>
  19. </html>
Add Comment
Please, Sign In to add comment