Guest User

Untitled

a guest
May 11th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. <?php defined('BASEPATH') OR exit('No direct script access allowed.');
  2.  
  3. $config['useragent'] = 'PHPMailer'; // Mail engine switcher: 'CodeIgniter' or 'PHPMailer'
  4. $config['protocol'] = 'smtp'; // 'mail', 'sendmail', or 'smtp'
  5. $config['mailpath'] = '/usr/sbin/sendmail';
  6. $config['smtp_host'] = 'smtp.gmail.com';
  7. $config['smtp_user'] = '***********@gmail.com';
  8. $config['smtp_pass'] = '*********';
  9. $config['smtp_port'] = 587;
  10. $config['smtp_timeout'] = 5; // (in seconds)
  11. $config['smtp_crypto'] = 'tls'; // '' or 'tls' or 'ssl'
  12. $config['wordwrap'] = true;
  13. $config['wrapchars'] = 76;
  14. $config['mailtype'] = 'html'; // 'text' or 'html'
  15. $config['charset'] = 'iso-8859-1';
  16. $config['validate'] = true;
  17. $config['priority'] = 3; // 1, 2, 3, 4, 5
  18. $config['crlf'] = "n"; // "rn" or "n" or "r"
  19. $config['newline'] = "n"; // "rn" or "n" or "r"
  20. $config['bcc_batch_mode'] = false;
  21. $config['bcc_batch_size'] = 200;
  22.  
  23. $this->email->from('rupendrakumardhiman@gmail.com', 'Rupendra');
  24. $this->email->to('rupu.engg@gmail.com');
  25. $this->email->subject('Notification Mail');
  26. $this->email->message('Your message');
  27. $this->email->send();
  28.  
  29. echo $this->email->print_debugger();
  30.  
  31. 220 smtp.gmail.com ESMTP g20-v6sm6361567pfi.163 - gsmtp
  32.  
  33. hello: 250-smtp.gmail.com at your service, [160.202.36.237]
  34. 250-SIZE 35882577
  35. 250-8BITMIME
  36. 250-STARTTLS
  37. 250-ENHANCEDSTATUSCODES
  38. 250-PIPELINING
  39. 250-CHUNKING
  40. 250 SMTPUTF8
  41.  
  42. starttls: 220 2.0.0 Ready to start TLS
  43.  
  44. hello: 250-smtp.gmail.com at your service, [160.202.36.237]
  45. 250-SIZE 35882577
  46. 250-8BITMIME
  47. 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
  48. 250-ENHANCEDSTATUSCODES
  49. 250-PIPELINING
  50. 250-CHUNKING
  51. 250 SMTPUTF8
  52.  
  53. from: 250 2.1.0 OK g20-v6sm6361567pfi.163 - gsmtp
  54.  
  55. to: 250 2.1.5 OK g20-v6sm6361567pfi.163 - gsmtp
  56.  
  57. data: 354 Go ahead g20-v6sm6361567pfi.163 - gsmtp
  58.  
  59.  
  60. quit:
  61.  
  62. The following SMTP error was encountered:
  63. The following SMTP error was encountered:
  64. Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
  65.  
  66. Date: Fri, 11 May 2018 19:14:55 +0530
  67. From: "Rupendra" <rupendrakumardhiman@gmail.com>
  68. Return-Path: <rupendrakumardhiman@gmail.com>
  69. To: rupu.engg@gmail.com
  70. Subject: =?ISO-8859-1?Q?=4E=6F=74=69=66=69=63=61=74=69=6F=6E=20=4D=61=69=6C?=
  71. Reply-To: <rupendrakumardhiman@gmail.com>
  72. User-Agent: PHPMailer
  73. X-Sender: rupendrakumardhiman@gmail.com
  74. X-Mailer: PHPMailer
  75. X-Priority: 3 (Normal)
  76. Message-ID: <5af59e575b1d2@gmail.com>
  77. Mime-Version: 1.0
  78.  
  79.  
  80. Content-Type: multipart/alternative; boundary="B_ALT_5af59e575b232"
  81.  
  82. This is a multi-part message in MIME format.
  83. Your email application may not support this format.
  84.  
  85. --B_ALT_5af59e575b232
  86. Content-Type: text/plain; charset=ISO-8859-1
  87. Content-Transfer-Encoding: 8bit
  88.  
  89. Your message
  90.  
  91.  
  92. --B_ALT_5af59e575b232
  93. Content-Type: text/html; charset=ISO-8859-1
  94. Content-Transfer-Encoding: quoted-printable
  95.  
  96. Your message
  97.  
  98. --B_ALT_5af59e575b232--
  99.  
  100. Ok
Add Comment
Please, Sign In to add comment