Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('BASEPATH') OR exit('No direct script access allowed.');
- $config['useragent'] = 'PHPMailer'; // Mail engine switcher: 'CodeIgniter' or 'PHPMailer'
- $config['protocol'] = 'smtp'; // 'mail', 'sendmail', or 'smtp'
- $config['mailpath'] = '/usr/sbin/sendmail';
- $config['smtp_host'] = 'smtp.gmail.com';
- $config['smtp_user'] = '***********@gmail.com';
- $config['smtp_pass'] = '*********';
- $config['smtp_port'] = 587;
- $config['smtp_timeout'] = 5; // (in seconds)
- $config['smtp_crypto'] = 'tls'; // '' or 'tls' or 'ssl'
- $config['wordwrap'] = true;
- $config['wrapchars'] = 76;
- $config['mailtype'] = 'html'; // 'text' or 'html'
- $config['charset'] = 'iso-8859-1';
- $config['validate'] = true;
- $config['priority'] = 3; // 1, 2, 3, 4, 5
- $config['crlf'] = "n"; // "rn" or "n" or "r"
- $config['newline'] = "n"; // "rn" or "n" or "r"
- $config['bcc_batch_mode'] = false;
- $config['bcc_batch_size'] = 200;
- $this->email->from('rupendrakumardhiman@gmail.com', 'Rupendra');
- $this->email->to('rupu.engg@gmail.com');
- $this->email->subject('Notification Mail');
- $this->email->message('Your message');
- $this->email->send();
- echo $this->email->print_debugger();
- 220 smtp.gmail.com ESMTP g20-v6sm6361567pfi.163 - gsmtp
- hello: 250-smtp.gmail.com at your service, [160.202.36.237]
- 250-SIZE 35882577
- 250-8BITMIME
- 250-STARTTLS
- 250-ENHANCEDSTATUSCODES
- 250-PIPELINING
- 250-CHUNKING
- 250 SMTPUTF8
- starttls: 220 2.0.0 Ready to start TLS
- hello: 250-smtp.gmail.com at your service, [160.202.36.237]
- 250-SIZE 35882577
- 250-8BITMIME
- 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
- 250-ENHANCEDSTATUSCODES
- 250-PIPELINING
- 250-CHUNKING
- 250 SMTPUTF8
- from: 250 2.1.0 OK g20-v6sm6361567pfi.163 - gsmtp
- to: 250 2.1.5 OK g20-v6sm6361567pfi.163 - gsmtp
- data: 354 Go ahead g20-v6sm6361567pfi.163 - gsmtp
- quit:
- The following SMTP error was encountered:
- The following SMTP error was encountered:
- Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
- Date: Fri, 11 May 2018 19:14:55 +0530
- From: "Rupendra" <rupendrakumardhiman@gmail.com>
- Return-Path: <rupendrakumardhiman@gmail.com>
- To: rupu.engg@gmail.com
- Subject: =?ISO-8859-1?Q?=4E=6F=74=69=66=69=63=61=74=69=6F=6E=20=4D=61=69=6C?=
- Reply-To: <rupendrakumardhiman@gmail.com>
- User-Agent: PHPMailer
- X-Sender: rupendrakumardhiman@gmail.com
- X-Mailer: PHPMailer
- X-Priority: 3 (Normal)
- Message-ID: <5af59e575b1d2@gmail.com>
- Mime-Version: 1.0
- Content-Type: multipart/alternative; boundary="B_ALT_5af59e575b232"
- This is a multi-part message in MIME format.
- Your email application may not support this format.
- --B_ALT_5af59e575b232
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- Your message
- --B_ALT_5af59e575b232
- Content-Type: text/html; charset=ISO-8859-1
- Content-Transfer-Encoding: quoted-printable
- Your message
- --B_ALT_5af59e575b232--
- Ok
Add Comment
Please, Sign In to add comment