Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. An Error Was Encountered
  2.  
  3. 220 smtp.googlemail.com ESMTP x66sm53059629pfb.86 - gsmtp
  4.  
  5. hello: 250-smtp.googlemail.com at your service, [203.177.142.78]
  6. 250-SIZE 35882577
  7. 250-8BITMIME
  8. 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
  9. 250-ENHANCEDSTATUSCODES
  10. 250-PIPELINING
  11. 250-CHUNKING
  12. 250 SMTPUTF8
  13.  
  14. Failed to authenticate password. Error: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 x66sm53059629pfb.86 - gsmtp
  15. Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
  16.  
  17. User-Agent: CodeIgniter
  18. Date: Tue, 30 Aug 2016 07:21:37 +0200
  19. From: "juan dela cruz" <sampleticketdaddress@gmail.com>
  20. Return-Path: <sampleticketdaddress@gmail.com>
  21. To: sampleticketdaddress@gmail.com
  22. Subject: =?UTF-8?Q?Email=20Testing?=
  23. Reply-To: <sampleticketdaddress@gmail.com>
  24. X-Sender: sampleticketdaddress@gmail.com
  25. X-Mailer: CodeIgniter
  26. X-Priority: 3 (Normal)
  27. Message-ID: <57c517e10e70b@gmail.com>
  28. Mime-Version: 1.0
  29.  
  30.  
  31. Content-Type: text/plain; charset=UTF-8
  32. Content-Transfer-Encoding: 8bit
  33.  
  34. Email is working great.
  35.  
  36. function index(){
  37. $config = Array(
  38. 'protocol' =>'smtp',
  39. 'smtp_host' => 'ssl://smtp.googlemail.com',
  40. 'smtp_port' => 465,
  41. 'smtp_user' => 'sampleticketdaddress@gmail.com',
  42. 'smtp_pass' => 'xxxxxx'
  43. );
  44.  
  45. $this->load->library('email', $config);
  46. $this->email->set_newline("rn");
  47.  
  48. $this->email->from('sampleticketdaddress@gmail.com', 'some name');
  49. $this->email->to('sampleticketdaddress@gmail.com');
  50. $this->email->subject("Email Testing");
  51. $this->email->message('Email is working great.');
  52.  
  53. if($this->email->send())
  54. {
  55. echo "Email has been sent.";
  56. }
  57. else
  58. {
  59. show_error($this->email->print_debugger());
  60. }
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement