Guest User

Untitled

a guest
Mar 9th, 2018
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <html>
  2. <?php
  3. $lastemail = $_GET["email"];
  4. $out = $_GET["output"];
  5. $coord = $_GET["coord"];
  6. $to = $lastemail;
  7. $otp = "Your ".$out." issue which you had reported at the following address has been solved.<br><br>".$coord."<br><br><br>We Thank you for your service,<br>Team Mastek.";
  8. $body = $otp;
  9.  
  10. send_mail($to, $body);
  11.  
  12.  
  13. function send_mail($to, $body)
  14. {
  15. date_default_timezone_set('Etc/UTC');
  16. require 'PHPMailer/class.phpmailer.php';
  17. require 'PHPMailer/PHPMailerAutoload.php';
  18.  
  19.  
  20. $mail = new PHPMailer(true);
  21.  
  22. $mail->isSMTP();
  23. $mail->Host = 'smtp.live.com';
  24. $mail->SMTPAuth = true;
  25. $mail->Username = 'deepbluecsp3@hotmail.com';
  26. $mail->Password = 'Deepbluecsp@3';
  27. $mail->SMTPSecure = 'tls';
  28. $mail->Port = 587;
  29. $mail->Subject = "Your Reported Issue";
  30.  
  31. $mail->From = 'deepbluecsp3@hotmail.com';
  32. $mail->FromName = 'CSP 3';
  33. $mail->addAddress($to);
  34. $mail->addReplyTo("deepbluecsp3@hotmail.com", 'Reply');
  35.  
  36. $mail->isHTML(true);
  37.  
  38. $mail->Body = $body;
  39. $mail->AltBody = 'Your issue which you had reported to us is now solved. Thank You, Team Mastek';
  40.  
  41. if(!$mail->send())
  42. {
  43. echo 'Email could not be sent.';
  44. }
  45. else
  46. {
  47. echo"Email has been sent!!";
  48. ?>
  49. <script type="text/javascript">
  50. window.close();
  51. </script>
  52. <?php
  53. }
  54. }
  55.  
  56. ?>
Add Comment
Please, Sign In to add comment