Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $thename=$_GET["thename"];
- $theage=$_GET["theage"];
- $to = "someemail@gmail.com";
- $subject = "Android";
- $body = "Hi,\n\nHow are you," . $thename . "?\n\nAt " . $theage . " you are getting old.";
- if (mail($to, $subject, $body))
- {
- echo("<p>Message successfully sent!</p>");
- }
- else
- {
- echo("<p>Message delivery failed...</p>");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement