Welcome Guest, Not a member yet? Register   Sign In
SMTP configuration issue with CodeIgniter 3
#1
Exclamation 

220 PN3PR01CA0185.outlook.office365.com Microsoft ESMTP MAIL Service ready at Wed, 10 Aug 2022 13:48:57 +0000
hello: 250-PN3PR01CA0185.outlook.office365.com Hello [114.143.164.242]
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-PN3PR01CA0185.outlook.office365.com Hello [114.143.164.242]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8

Failed to authenticate password. Error: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [PN3PR01CA0185.INDPRD01.PROD.OUTLOOK.COM]
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
Date: Wed, 10 Aug 2022 19:18:41 +0530
From: "PMS" <abc@abc.com>
Return-Path: <abc@abc.com>
To: abc@abc.co.in
Subject: =?UTF-8?Q?Email=20verification?=
Reply-To: <abc@abc.com>
User-Agent: CodeIgniter
X-Sender: abc@abc.com
X-Mailer: CodeIgniter
X-Priority: 1 (Highest)
Message-ID: <62f3b7392a7b6@abc.com>
Mime-Version: 1.0


Content-Type: multipart/alternative; boundary="B_ALT_62f3b7392a7c0"

This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ALT_62f3b7392a7c0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Dear RAHUL, Your email verification code is 1120 Thanks


--B_ALT_62f3b7392a7c0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p> Dear RAHUL,</p><p> Your email verification code is 1120</p><p> Thanks <=
/p>

--B_ALT_62f3b7392a7c0--

When I use $this->email->print_debuuger() then I getting above error

Note: abc.com consider as fake record.

Email configuration:

        $config['protocol'] = 'smtp';
        $config['smtp_host'] = 'smtp.office365.com';
        $config['smtp_user'] = 'xxxxxxx';  
        $config['smtp_pass'] = 'xxxxxxx';
        $config['smtp_port'] = '587';
        $config['charset'] = 'utf-8';
        $config['crlf'] = "\r\n";
        $config['newline'] = "\r\n";
        $config['mailtype'] = 'html';
        $config['priority'] = 1;
        $config['smtp_timeout'] = 30;
        $config['smtp_crypto'] = 'tls';

Not sending email with above configuration but email send using the following changes:

        $config['smtp_host'] = 'smtp-legacy.office365.com';
        $config['smtp_port'] = '25';


But I don't want to send email from legacy configuration.
Please help me to resolve this issue.
Reply
#2

I updated Email Library in CodeIgniter 3 and issue was resolved.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB