Advertisement
sameera88413

Untitled

Sep 3rd, 2012
2,923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2. $to = "someone@example.com";
  3. $subject = "Test mail";
  4. $message = "Hello! This is a simple email message.";
  5. $from = "someonelse@example.com";
  6. $headers = "From:" . $from;
  7. mail($to,$subject,$message,$headers);
  8. echo "Mail Sent.";
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement