Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 22nd, 2013  |  syntax: None  |  size: 0.53 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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);
clone this paste RAW Paste Data