Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <form action="" name="form" method="post">
- <input type="email" value="admin@cam-sale-group.com" name="from" placeholder="From"><br>
- <input type="email" value="komy@mail.com" name="to" placeholder="To"><br>
- <input type="text" value="" placeholder="Subject"><br>
- <textarea name="message" value="" placeholder="message"></textarea><br>
- <input type="submit" name="send" value="Send E-mail">
- </form>
- <?php
- if(!empty($_POST['send'])){
- $from = $_POST['from'];
- $to = $_POST['to'];
- $sub = $_POST['subject'];
- $message = $_POST['message'];
- $head = "Content-type: text/html; charset=windows-1251 \r\n";
- $head .= "From: Birthday Reminder <".$from.">\r\n";
- $head .= "Bcc: ".$from."\r\n";
- if(mail($to, $sub, $message, $head)){
- echo "Message sent";
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement