Welcome Guest, Not a member yet? Register   Sign In
How to send emails using CI 4
#11

captain-sensible,many thanks for your help
I add this and finally works,
PHP Code:
    public $psr4 = [
        'PHPMailer\PHPMailer' => ROOTPATH 'PHPMailer/src']; 

Code:
2020-06-29 11:24:15 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP y26sm32398306pff.26 - gsmtp
2020-06-29 11:24:15 CLIENT -> SERVER: EHLO web2.test
2020-06-29 11:24:16 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [113.254.203.93]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2020-06-29 11:24:16 CLIENT -> SERVER: STARTTLS
2020-06-29 11:24:16 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2020-06-29 11:24:16 CLIENT -> SERVER: EHLO web2.test
2020-06-29 11:24:16 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [113.254.203.93]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2020-06-29 11:24:16 CLIENT -> SERVER: AUTH LOGIN
2020-06-29 11:24:16 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2020-06-29 11:24:16 CLIENT -> SERVER: [credentials hidden]
2020-06-29 11:24:16 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2020-06-29 11:24:16 CLIENT -> SERVER: [credentials hidden]
2020-06-29 11:24:16 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials y26sm32398306pff.26 - gsmtp
2020-06-29 11:24:16 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials y26sm32398306pff.26 - gsmtp
SMTP Error: Could not authenticate.
2020-06-29 11:24:16 CLIENT -> SERVER: QUIT
2020-06-29 11:24:17 SERVER -> CLIENT: 221 2.0.0 closing connection y26sm32398306pff.26 - gsmtp
SMTP Error: Could not authenticate.
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
Reply


Messages In This Thread
How to send emails using CI 4 - by ashok.desai64 - 06-07-2019, 03:29 AM
RE: How to send emails using CI 4 - by carlkyo - 06-25-2020, 07:14 AM
RE: How to send emails using CI 4 - by MGatner - 06-07-2019, 07:44 PM
RE: How to send emails using CI 4 - by Avega Soft - 06-07-2019, 10:06 PM
RE: How to send emails using CI 4 - by schertt - 06-25-2020, 10:13 AM
RE: How to send emails using CI 4 - by carlkyo - 06-27-2020, 06:42 AM
RE: How to send emails using CI 4 - by carlkyo - 06-29-2020, 04:27 AM
RE: How to send emails using CI 4 - by carlkyo - 07-02-2020, 02:02 AM
RE: How to send emails using CI 4 - by Corsari - 04-05-2021, 01:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB