Guest User

Untitled

a guest
Jul 23rd, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2. $to = "name@domain.com";
  3. $subject = "test";
  4. $body = "Hi,\n\nYou have a new message";
  5. if (mail($to, $subject, $body)) {
  6. echo("<p>Message successfully sent!</p>");
  7. } else {
  8. echo("<p>Message delivery failed...</p>");
  9. }
  10. ?>
Add Comment
Please, Sign In to add comment