Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. $sendto = "account@gmail.com";
  3. $subject = "email confirmation"; // Subject
  4. $message = "the body of the email - this email is to confirm etc...";
  5. # send the email
  6. mail($sendto, $subject, $message);
  7. ?>
  8.  
  9. smtp = localhost #(here should be your smtp server)
  10. smtp_port = 25
  11.  
  12. $to = 'nobody@example.com';
  13. $subject = 'the subject';
  14. $message = 'hello';
  15. $headers = 'From: webmaster@example.com' . "rn" .
  16. 'Reply-To: webmaster@example.com' . "rn" .
  17. 'X-Mailer: PHP/' . phpversion();
  18.  
  19. mail($to, $subject, $message, $headers);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement