Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. # Include and load PHPMailer:
  4. require_once 'libs/utils/PHPMailer-5.2.16/PHPMailerAutoload.php';
  5. $mail = new PHPMailer();
  6.  
  7. # Config the SMTP
  8. $mail->CharSet = 'UTF-8';
  9. $mail->IsSMTP();
  10. $mail->Host = '';
  11. $mail->SMTPAuth = true;
  12. $mail->Username = '';
  13. $mail->Password = '';
  14.  
  15. # Set the mail
  16. $mail->From = '';
  17. $mail->FromName = '';
  18. $mail->AddAddress($_POST['email'], $_POST['name']);
  19. $mail->Subject = '';
  20. $mail->Body = '';
  21.  
  22. # Send
  23. $mail->send();
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement