Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $to = $_POST['to'];
- $subject = $_POST['subject'];
- $message = $_POST['message'];
- $from = $_POST['from'];
- $headers = "From:" . $from;
- $mail = mail($to,$subject,$message,$headers,$from);
- if($mail)
- {
- echo "Email sent to: ".$to;
- echo "</br>";
- echo "From: ".$from;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement