Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $to = 'admin@localhost';
- $subject = 'the subject';
- $message = 'hello';
- $sender = $_POST['name'];
- $headers = 'From: postmaster@localhost' . "\r\n" .
- 'Reply-To: admin@localhost' . "\r\n" .
- 'X-Mailer: PHP/' . phpversion();
- mail($to, $subject, $message, $headers);
- ?>
- <html>
- <head>
- <title>mailed to admin</title>
- </head>
- <body>
- successfully mail sent ot the web master
- </body>
- </html>
Add Comment
Please, Sign In to add comment