Advertisement
Guest User

Untitled

a guest
Jan 26th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. $orderName = $_POST['orderName'];
  2. $orderEmail = $_POST['orderEmail'];
  3. $mail = new PHPMailer();
  4.  
  5. $mail->IsSMTP();
  6. $mail->Mailer = "smtp";
  7. $mail->Host = "smtp.mandrillapp.com";
  8. $mail->Port = 587;
  9. $mail->SMTPAuth = true;
  10. $mail->SMTPDebug = 0;
  11.  
  12. $mail->SMTPAuth = true;
  13. $mail->SMTPSecure = 'tls';
  14. $mail->Username = "";
  15. $mail->Password = "";
  16.  
  17. $mail->From = 'no-reply@scoolia.se';
  18. $mail->FromName = $orderName;
  19. $mail->AddAddress('no-reply@ex.se', $orderSubject);
  20. $mail->AddReplyTo('no-reply@ex.com', $orderName);
  21.  
  22. $mail->Name = $orderName;
  23. $mail->Email = $orderEmail;
  24. $mail->Subject = $orderSubject;
  25. $mail->Message = $orderMessage;
  26. $mail->Body = "Name: ".$orderName."n"."Email: ".$orderEmail."n"."Subject: ".$orderSubject."n"."Message: ".$orderMessage."n"."Pack: ".$pack;
  27. $mail->WordWrap = 50;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement