Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $to = "someone@example.com";
- $subject = "Test mail";
- $message = "Hello! This is a simple email message.";
- $from = "someonelse@example.com";
- $headers = "From:" . $from;
- mail($to,$subject,$message,$headers);
- echo "Mail Sent.";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement