Advertisement
Guest User

Untitled

a guest
Oct 11th, 2016
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. $config = Array(
  2. 'protocol' => 'smtp',
  3. 'smtp_host' => 'smtp.gmail.com',
  4. //'smtp_host' => 'localhost',
  5. 'smtp_port' => 465,
  6. 'mailpath' => 'C:xamppsendmail', // tried without sendmail
  7. 'smtp_user' => 'correct email',
  8. 'smtp_pass' => 'correct pass',
  9. 'mailtype' => 'html',
  10. 'charset' => 'utf-8',
  11. 'starttls' => true, // changing makes no difference
  12. 'smtp_crypto' =>'ssl', // tried without ssl on port 25 as wel, google not responding
  13. '_smtp_auth' => true // tried removing this
  14. );
  15. $this->load->library('email', $config);
  16. $this->email->from('tkd.tongil.neeroeteren@gmail.com', 'Tong-Il Neeroeteren'); //verzender (magic e-cards)
  17. $this->email->to($email); //ontvanger
  18. $this->email->subject($subject); //onderwerp toevoegen
  19. //inhoud van het bericht met activatiecode als link.
  20. $this->email->message($message);
  21. if (!$this->email->send()) {
  22. $errors = $this->email->print_debugger();
  23. return false;
  24. } else {
  25. return true;
  26. }
  27.  
  28. 220 smtp.gmail.com ESMTP h11sm1190535ljh.15 - gsmtp
  29. <br /><pre>hello: 250-smtp.gmail.com at your service, [2a02:1810:9d16:bf00:eda1:6150:23ed:ba70]
  30. 250-SIZE 35882577
  31. 250-8BITMIME
  32. 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
  33. 250-ENHANCEDSTATUSCODES
  34. 250-PIPELINING
  35. 250-CHUNKING
  36. 250 SMTPUTF8
  37. </pre>Failed to authenticate password. Error: 535-5.7.8 Username and Password not accepted. Learn more at
  38. 535 5.7.8 https://support.google.com/mail/?p=BadCredentials h11sm1190535ljh.15 - gsmtp
  39. <br /><pre>from: 530-5.5.1 Authentication Required. Learn more at
  40. 530 5.5.1 https://support.google.com/mail/?p=WantAuthError h11sm1190535ljh.15 - gsmtp
  41. </pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at
  42. 530 5.5.1 https://support.google.com/mail/?p=WantAuthError h11sm1190535ljh.15 - gsmtp
  43. <br /><pre>to: 530-5.5.1 Authentication Required. Learn more at
  44. 530 5.5.1 https://support.google.com/mail/?p=WantAuthError h11sm1190535ljh.15 - gsmtp
  45. </pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at
  46. 530 5.5.1 https://support.google.com/mail/?p=WantAuthError h11sm1190535ljh.15 - gsmtp
  47. <br /><pre>data: 530-5.5.1 Authentication Required. Learn more at
  48. 530 5.5.1 https://support.google.com/mail/?p=WantAuthError h11sm1190535ljh.15 - gsmtp
  49. </pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at
  50. 530 5.5.1 https://support.google.com/mail/?p=WantAuthError h11sm1190535ljh.15 - gsmtp
  51. <br />502 5.5.1 Unrecognized command. h11sm1190535ljh.15 - gsmtp
  52. <br />The following SMTP error was encountered: 502 5.5.1 Unrecognized command. h11sm1190535ljh.15 - gsmtp
  53. <br />Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.<br /><pre>User-Agent: CodeIgniter
  54. Date: Mon, 10 Oct 2016 19:34:18 +0200
  55. From: "Tong-Il Neeroeteren" <tkd.tongil.neeroeteren@gmail.com>
  56. Return-Path: <tkd.tongil.neeroeteren@gmail.com>
  57. To: robbie.vercammen@gmail.com
  58. Subject: =?utf-8?Q?Activeer_uw_account?=
  59. Reply-To: "tkd.tongil.neeroeteren@gmail.com" <tkd.tongil.neeroeteren@gmail.com>
  60. X-Sender: tkd.tongil.neeroeteren@gmail.com
  61. X-Mailer: CodeIgniter
  62. X-Priority: 3 (Normal)
  63. Message-ID: <57fbd11ad5a9f@gmail.com>
  64. Mime-Version: 1.0
  65.  
  66.  
  67. Content-Type: multipart/alternative; boundary="B_ALT_57fbd11ad5b41"
  68.  
  69. This is a multi-part message in MIME format.
  70. Your email application may not support this format.
  71.  
  72. --B_ALT_57fbd11ad5b41
  73. Content-Type: text/plain; charset=utf-8
  74. Content-Transfer-Encoding: 8bit
  75.  
  76. // Too much info
  77.  
  78. --B_ALT_57fbd11ad5b41
  79. Content-Type: text/html; charset=utf-8
  80. Content-Transfer-Encoding: quoted-printable
  81.  
  82. // Too much info
  83.  
  84. --B_ALT_57fbd11ad5b41--</pre>
  85.  
  86. [mail function]
  87. SMTP=ssl://smtp.gmail.com
  88. smtp_port=465
  89. sendmail_from = tkd.tongil.neeroeteren@gmail.com
  90. sendmail_path = ""C:xamppsendmailsendmail.exe" -t"
  91. mail.add_x_header=On
  92.  
  93. smtp_server=smtp.gmail.com
  94. smtp_port=465
  95. smtp_ssl=auto
  96. auth_username=correct email
  97. auth_password=correct password
  98. force_sender=tkd.tongil.neeroeteren@gmail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement