Advertisement
Guest User

Untitled

a guest
Feb 20th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. $mail->isSMTP();
  2. $mail->SMTPAuth = true;
  3.  
  4. $mail->Host = 'smtp.gmail.com';
  5. $mail->Username = 'krshutube@gmail.com';
  6. $mail->Password = 'Appo1234';
  7. $mail->SMTPSecure = 'ssl';
  8. $mail->Port = 465;
  9.  
  10. $mail->isHTML();
  11.  
  12. $mail->Subject = '$fields['name'] is wanting to apply.';
  13. $mail->Body = '<p>Name: $fields['name']</p><p>E-Mail: $fields['e-mail']</p><p>IGN: $fields['IGN']</p><p>Game Preference: $fields['game preference']</p><p>CPS: $fields['CPS']</p><p>Message: $fields['anything else']</p>';
  14.  
  15. $mail->FromName = 'Contact';
  16.  
  17. $mail->AddReplyTo($fields['e-mail'], $fields['name']);
  18.  
  19. $mail->AddAddress('krshutube@gmail.com');
  20.  
  21. if($mail->send) {
  22. header('Location: thanks.php');
  23. die();
  24. } else {
  25. $errors[] = 'Sorry, could not send email. Try again later.';
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement