Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $sendto = "account@gmail.com";
- $subject = "email confirmation"; // Subject
- $message = "the body of the email - this email is to confirm etc...";
- # send the email
- mail($sendto, $subject, $message);
- ?>
- smtp = localhost #(here should be your smtp server)
- smtp_port = 25
- $to = 'nobody@example.com';
- $subject = 'the subject';
- $message = 'hello';
- $headers = 'From: webmaster@example.com' . "rn" .
- 'Reply-To: webmaster@example.com' . "rn" .
- 'X-Mailer: PHP/' . phpversion();
- mail($to, $subject, $message, $headers);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement