Advertisement
Guest User

default

a guest
Apr 20th, 2012
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. $thename=$_GET["thename"];
  3. $theage=$_GET["theage"];
  4.  
  5. $to = "someemail@gmail.com";
  6. $subject = "Android";
  7. $body = "Hi,\n\nHow are you," . $thename . "?\n\nAt " . $theage . " you are getting old.";
  8. if (mail($to, $subject, $body))
  9. {
  10.  echo("<p>Message successfully sent!</p>");
  11. }
  12. else
  13. {
  14.  echo("<p>Message delivery failed...</p>");
  15. }
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement