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);