Guest User

Untitled

a guest
Oct 3rd, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.89 KB | None | 0 0
  1. 08:12:53 CLIENT -> SERVER: RCPT TO: 2016-10-13 08:12:53
  2. CLIENT -> SERVER: DATA 2016-10-13 08:12:53
  3. CLIENT -> SERVER: Date: Thu, 13 Oct 2016 08:12:51 +0000 2016-10-13 08:12:53
  4. CLIENT -> SERVER: To: Kevin Kloet 2016-10-13 08:12:53
  5. CLIENT -> SERVER: From: Name <myEmail@email.com> 2016-10-13 08:12:53
  6. CLIENT -> SERVER: Reply-To: Name <myEmail@email.com> 2016-10-13 08:12:53
  7. CLIENT -> SERVER: Subject: Subject 2016-10-13 08:12:53
  8. CLIENT -> SERVER: Message-ID: 2016-10-13 08:12:53
  9. CLIENT -> SERVER: X-Mailer: PHPMailer5.2.15 (https://github.com/PHPMailer/PHPMailer) 2016-10-13 08:12:53
  10. CLIENT -> SERVER: MIME-Version: 1.0 2016-10-13 08:12:53
  11. CLIENT -> SERVER: Content-Type: text/plain; charset=UTF-8 2016-10-13 08:12:53
  12. CLIENT -> SERVER: 2016-10-13 08:12:53
  13. CLIENT -> SERVER: Name: Name 2016-10-13 08:12:53
  14. CLIENT -> SERVER: Email: myEmail@email.com 2016-10-13 08:12:53
  15. CLIENT -> SERVER: Subject: Subject 2016-10-13 08:12:53
  16. CLIENT -> SERVER: Message: message 2016-10-13 08:12:53
  17. CLIENT -> SERVER: 2016-10-13 08:12:53
  18. CLIENT -> SERVER: . 2016-10-13 08:12:57
  19. SMTP ERROR: DATA END command failed: 550 5.3.4 554-554 5.2.0
  20. STOREDRV.Deliver; delivery result banner 2016-10-13 08:12:57
  21. --------> SMTP Error: data not accepted. Message was not sent.Mailer error: <--------
  22. --------> SMTP Error: data not accepted.SMTP server error: <--------
  23. DATA END command failed Detail: 554-554 5.2.0
  24. STOREDRV.Deliver; delivery result banner SMTP code: 550 Additional SMTP
  25. info: 5.3.4echo2016-10-13 08:12:57
  26. CLIENT -> SERVER: QUIT 2016-10-13 08:12:57
  27. SMTP ERROR: QUIT command failed: 554-554 5.2.0
  28. STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;
  29. Failed to process message due to a permanent exception with message Cannot
  30. submit message. 16.55847:6900000
  31.  
  32. require("PHPMailerAutoload.php");
  33.  
  34. $mail = new PHPMailer();
  35. $mail->IsSMTP();
  36. $mail->Mailer = "smtp";
  37. $mail->CharSet = 'UTF-8';
  38. $mail->Host = 'tls://smtp-mail.outlook.com';
  39. $mail->Port = "587"; // 8025, 587 and 25 can also be used. Use Port 465 for SSL.
  40. $mail->SMTPAuth = true;
  41. $mail->SMTPSecure = 'tls';
  42. $mail->Username = "username";
  43. $mail->Password = "password";
  44. $mail->From = trim_input($_POST['Email']);
  45. $mail->FromName = trim_input($_POST['Name']);
  46. $mail->AddAddress("receivingEmailAdress@outlook.com", "my name");
  47. $mail->AddReplyTo(trim_input($_POST['Email']), trim_input($_POST['Name']));
  48. $mail->SMTPDebug = 1;
  49. $mail->Subject = trim_input($_POST['Subject']);
  50. $mail->Body = trim_input($_POST['message']);
  51. $mail->WordWrap = 50;
  52.  
  53. if (!$mail->Send()) {
  54. echo 'Message was not sent.';
  55. echo 'Mailer error: ' . $mail->ErrorInfo;
  56. exit;
  57. } else {
  58. echo 'Message has been sent.';
  59. }
  60.  
  61. <!-- modal -->
  62. <div id="myModal" class="modal fade" role="dialog">
  63. <div class="modal-dialog">
  64.  
  65. <!-- Modal content-->
  66. <div class="modal-content">
  67. <div class="modal-header">
  68. <button type="button" class="close" data-dismiss="modal">&times</button>
  69. <h4 class="modal-title">Bericht sturen</h4>
  70. </div>
  71. <form method="POST" action="" >
  72. <div class="modal-body">
  73. <label for="messageName">Uw naam: </label>
  74. <input type="text" id="messageName" name="Name" />
  75. <label for="messageEmailAdress">Uw Emailadres: </label>
  76. <input type="text" id="messageEmailAdress" name="Email" />
  77. <label for="messageSubject">Onderwerp van uw bericht: </label>
  78. <input type="text" id="messageSubject" name="Subject" />
  79. <label for="message">bericht: </label>
  80. <textarea id="message" rows="4" cols="50" name="Message"></textarea>
  81. <input type="hidden" name="totalMessage" />
  82. </div>
  83. <div class="modal-footer">
  84. <button type="button" class="btn btn-default" data-dismiss="modal">Sluiten</button>
  85. <input type="submit" name="Submit" class="btn btn-primary" value="Stuur bericht" />
  86. </div>
  87. </form>
  88. </div>
  89. </div>
  90. </div>
  91.  
  92. jQuery(document).ready(function () {
  93. var form = document.getElementsByTagName('form')[0];
  94. if (form) {
  95. form.addEventListener('submit', contact, false);
  96. }
  97. function contact(e) {
  98. // Prevent Default Form Submission
  99. e.preventDefault();
  100.  
  101. var target = e.target || e.srcElement;
  102. var i = 0;
  103. var message = '';
  104.  
  105. // Loop Through All Input Fields
  106. for (i = 0; i < target.length; ++i) {
  107. // Check to make sure it's a value. Don't need to include Buttons
  108. if (target[i].type != 'text' && target[i].type != 'textarea') {
  109. // Skip to next input since this one doesn't match our rules
  110. continue;
  111. }
  112.  
  113. // Add Input Name and value followed by a line break
  114. message += target[i].name + ': ' + target[i].value + "rn";
  115. }
  116.  
  117. target.elements["totalMessage"].value = message;
  118. this.submit();
  119. }
  120. }
  121. );
  122.  
  123. 2016-10-13 10:13:42 SERVER -> CLIENT: 220 BLU436-SMTP224.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at Thu, 13 Oct 2016 03:13:39 -0700
  124. 2016-10-13 10:13:42 CLIENT -> SERVER: EHLO localhost
  125. 2016-10-13 10:13:42 SERVER -> CLIENT: 250-BLU436-SMTP224.smtp.hotmail.com Hello [82.176.119.145] 250-TURN 250-SIZE 41943040 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-TLS 250-STARTTLS 250 OK
  126. 2016-10-13 10:13:42 CLIENT -> SERVER: STARTTLS
  127. 2016-10-13 10:13:42 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
  128. 2016-10-13 10:13:42 CLIENT -> SERVER: EHLO localhost
  129. 2016-10-13 10:13:42 SERVER -> CLIENT: 250-BLU436-SMTP224.smtp.hotmail.com Hello [82.176.119.145] 250-TURN 250-SIZE 41943040 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-AUTH LOGIN PLAIN XOAUTH2 250 OK
  130. 2016-10-13 10:13:42 CLIENT -> SERVER: AUTH LOGIN
  131. 2016-10-13 10:13:42 SERVER -> CLIENT: 334 VXNlcm5hbWU6
  132. 2016-10-13 10:13:42 CLIENT -> SERVER: xxx==
  133. 2016-10-13 10:13:42 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
  134. 2016-10-13 10:13:42 CLIENT -> SERVER: xxx
  135. 2016-10-13 10:13:43 SERVER -> CLIENT: 235 2.7.0 Authentication succeeded
  136. 2016-10-13 10:13:43 CLIENT -> SERVER: MAIL FROM:
  137. 2016-10-13 10:13:43 SERVER -> CLIENT: 250 2.1.0 mySendingEmailaddress@email.com....Sender OK
  138. 2016-10-13 10:13:43 CLIENT -> SERVER: RCPT TO:
  139. 2016-10-13 10:13:43 SERVER -> CLIENT: 250 2.1.5 myReceivingEmailaddress@email.com
  140. 2016-10-13 10:13:43 CLIENT -> SERVER: DATA
  141. 2016-10-13 10:13:43 SERVER -> CLIENT: 354 Start mail input; end with .
  142. 2016-10-13 10:13:43 CLIENT -> SERVER: Date: Thu, 13 Oct 2016 10:13:41 +0000
  143. 2016-10-13 10:13:43 CLIENT -> SERVER: To: Kevin Kloet
  144. 2016-10-13 10:13:43 CLIENT -> SERVER: From: this is my name
  145. 2016-10-13 10:13:43 CLIENT -> SERVER: Reply-To: this is my name
  146. 2016-10-13 10:13:43 CLIENT -> SERVER: Subject: subject
  147. 2016-10-13 10:13:43 CLIENT -> SERVER: Message-ID: <3e21fa1900a9d30d3d51187e7719add6@localhost>
  148. 2016-10-13 10:13:43 CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.16 (https://github.com/PHPMailer/PHPMailer)
  149. 2016-10-13 10:13:43 CLIENT -> SERVER: MIME-Version: 1.0
  150. 2016-10-13 10:13:43 CLIENT -> SERVER: Content-Type: text/plain; charset=UTF-8
  151. 2016-10-13 10:13:43 CLIENT -> SERVER:
  152. 2016-10-13 10:13:43 CLIENT -> SERVER: Name: this is my name
  153. 2016-10-13 10:13:43 CLIENT -> SERVER: Email: mySendingEmail@email.com
  154. 2016-10-13 10:13:43 CLIENT -> SERVER: Subject: subject
  155. 2016-10-13 10:13:43 CLIENT -> SERVER: Message: this is the message
  156. 2016-10-13 10:13:43 CLIENT -> SERVER:
  157. 2016-10-13 10:13:43 CLIENT -> SERVER: .
  158. 2016-10-13 10:13:49 SERVER -> CLIENT: 550 5.3.4 554-554 5.2.0 STOREDRV.Deliver; delivery result banner
  159. 2016-10-13 10:13:49 SMTP ERROR: DATA END command failed: 550 5.3.4 554-554 5.2.0 STOREDRV.Deliver; delivery result banner
  160. 2016-10-13 10:13:49 SMTP Error: data not accepted. Message was not sent.Mailer error:
  161. SMTP Error: data not accepted.
  162. SMTP server error: DATA END command failed Detail: 554-554 5.2.0
  163. STOREDRV.Deliver; delivery result banner
  164. SMTP code: 550 Additional
  165. SMTP info: 5.3.4echo
  166. 2016-10-13 10:13:49 CLIENT -> SERVER: QUIT
  167. 2016-10-13 10:13:49 SERVER -> CLIENT: 554-554 5.2.0
  168. STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 16.55847:6900000 2016-10-13 10:13:49
  169. SMTP ERROR: QUIT command failed: 554-554 5.2.0
  170. STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 16.55847:6900000
  171.  
  172. function trim_input($data) {
  173. $data = trim($data);
  174. $data = stripslashes($data);
  175. $data = htmlspecialchars($data);
  176. return $data;
  177. }
  178.  
  179. $mail->FromName = trim_input($_POST['Name']);
  180.  
  181. $mail->From = trim_input("receivingEmailAdress@outlook.com");
  182. $mail->FromName = trim_input($_POST['Name']);
  183. $mail->AddAddress("receivingEmailAdress@outlook.com", "my name");
  184. $mail->AddReplyTo(trim_input($_POST['Email']), trim_input($_POST['Name']));
Add Comment
Please, Sign In to add comment