Hello. I have a problem with CI 3 /system/library/Mail.php library. I have upgraded from 2.2.6 to 3.0.2 and i cant send email without issues. With default smtp_timeout = 5, i get error in $this->email->print_debugger();, but when i set smtp_timeout = 6, i can send email, but i get empty string from $this->email->print_debugger();
$config['charset'] = 'utf-8';
$config['mailtype'] = 'html';
$config['protocol'] = 'smtp';
$config['smtp_crypto'] = 'tls';
$config['smtp_host'] = 'smtp.office365.com'; //ssl:// siusti gali is its@lsu.lt ir informacinesistema@lsu.lt
$config['smtp_user'] = 'noreply@lsu.lt';
$config['smtp_pass'] = 'labas123';
$config['smtp_port'] = 587;
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
cant send, get this:
220 VI1P189CA0022.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 5 Oct 2017 05:14:10 +0000
hello: 250-VI1P189CA0022.outlook.office365.com Hello [193.219.75.225]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
starttls: 220 2.0.0 SMTP server ready
hello: 250-VI1P189CA0022.outlook.office365.com Hello [193.219.75.225]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
from: 250 2.1.0 Sender OK
to: 250 2.1.5 Recipient OK
to:
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.
$config['smtp_timeout'] = 6; send, but empty echo $this->email->print_debugger(); die();
With CI2 Mail.php everythink worked very well. I have tested 3.0.2, 3.1.6 Mail.php library. The same issue.
$config['charset'] = 'utf-8';
$config['mailtype'] = 'html';
$config['protocol'] = 'smtp';
$config['smtp_crypto'] = 'tls';
$config['smtp_host'] = 'smtp.office365.com'; //ssl:// siusti gali is its@lsu.lt ir informacinesistema@lsu.lt
$config['smtp_user'] = 'noreply@lsu.lt';
$config['smtp_pass'] = 'labas123';
$config['smtp_port'] = 587;
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
cant send, get this:
220 VI1P189CA0022.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 5 Oct 2017 05:14:10 +0000
hello: 250-VI1P189CA0022.outlook.office365.com Hello [193.219.75.225]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
starttls: 220 2.0.0 SMTP server ready
hello: 250-VI1P189CA0022.outlook.office365.com Hello [193.219.75.225]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
from: 250 2.1.0 Sender OK
to: 250 2.1.5 Recipient OK
to:
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.
$config['smtp_timeout'] = 6; send, but empty echo $this->email->print_debugger(); die();
With CI2 Mail.php everythink worked very well. I have tested 3.0.2, 3.1.6 Mail.php library. The same issue.