I am using latest version of phplist
using php 7.4
I have made settings as below in my config.php…
define("PHPMAILER",1);
define("PHPMAILERHOST", 'smtp-relay.brevo.com');
define("PHPMAILERPORT",587);
define('PHPMAILER_SECURE',tls);
$phpmailer_smtpuser = 'xyz@gmail.com';
$phpmailer_smtppassword = '****';
define('PHPMAILER_SMTP_DEBUG', 4);
define('SMTP_TIMEOUT',30);
But it is not sending emails using brevo smtp. Emails are being sent when i use my own hosting provider’s smtp, but email lands in spam box. So, i decided to use smtp from brevo. [The only reason i am using brevo is to land email in inbox. My hosting provider’s has all the email deliverability options enabled but email still lands in spam box]
I have followed this thread also Not sending email through external smtp server - #2 by duncanc without any success.
Below is the smtp debug…
2023-08-29 13:53:34 Connection: opening to smtp-relay.brevo.com:587, timeout=30, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
2023-08-29 13:53:34 Connection: opened
2023-08-29 13:53:34 SMTP INBOUND: "220-ssd.lncloud.in ESMTP Exim 4.95 #2 Tue, 29 Aug 2023 13:53:34 +0000"
2023-08-29 13:53:34 SMTP INBOUND: "220-We do not authorize the use of this system to transport unsolicited,"
2023-08-29 13:53:34 SMTP INBOUND: "220 and/or bulk e-mail."
2023-08-29 13:53:34 SERVER -> CLIENT: 220-ssd.lncloud.in ESMTP Exim 4.95 #2 Tue, 29 Aug 2023 13:53:34 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
2023-08-29 13:53:34 CLIENT -> SERVER: EHLO nirdosh.shop
2023-08-29 13:53:34 SMTP INBOUND: "250-ssd.lncloud.in Hello nirdosh.shop [172.26.9.99]"
2023-08-29 13:53:34 SMTP INBOUND: "250-SIZE 52428800"
2023-08-29 13:53:34 SMTP INBOUND: "250-8BITMIME"
2023-08-29 13:53:34 SMTP INBOUND: "250-PIPELINING"
2023-08-29 13:53:34 SMTP INBOUND: "250-PIPE_CONNECT"
2023-08-29 13:53:34 SMTP INBOUND: "250-AUTH PLAIN LOGIN"
2023-08-29 13:53:34 SMTP INBOUND: "250-STARTTLS"
2023-08-29 13:53:34 SMTP INBOUND: "250 HELP"
2023-08-29 13:53:34 SERVER -> CLIENT: 250-ssd.lncloud.in Hello nirdosh.shop [172.26.9.99]250-SIZE 52428800250-8BITMIME250-PIPELINING250-PIPE_CONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
2023-08-29 13:53:34 CLIENT -> SERVER: STARTTLS
2023-08-29 13:53:34 SMTP INBOUND: "220 TLS go ahead"
2023-08-29 13:53:34 SERVER -> CLIENT: 220 TLS go ahead
2023-08-29 13:53:34 CLIENT -> SERVER: EHLO nirdosh.shop
2023-08-29 13:53:34 SMTP INBOUND: "250-ssd.lncloud.in Hello nirdosh.shop [172.26.9.99]"
2023-08-29 13:53:34 SMTP INBOUND: "250-SIZE 52428800"
2023-08-29 13:53:34 SMTP INBOUND: "250-8BITMIME"
2023-08-29 13:53:34 SMTP INBOUND: "250-PIPELINING"
2023-08-29 13:53:34 SMTP INBOUND: "250-PIPE_CONNECT"
2023-08-29 13:53:34 SMTP INBOUND: "250-AUTH PLAIN LOGIN"
2023-08-29 13:53:34 SMTP INBOUND: "250 HELP"
2023-08-29 13:53:34 SERVER -> CLIENT: 250-ssd.lncloud.in Hello nirdosh.shop [172.26.9.99]250-SIZE 52428800250-8BITMIME250-PIPELINING250-PIPE_CONNECT250-AUTH PLAIN LOGIN250 HELP
2023-08-29 13:53:34 Auth method requested: UNSPECIFIED
2023-08-29 13:53:34 Auth methods available on the server: PLAIN,LOGIN
2023-08-29 13:53:34 Requested auth method not available:
2023-08-29 13:53:34 Auth method selected: LOGIN
2023-08-29 13:53:34 CLIENT -> SERVER: AUTH LOGIN
2023-08-29 13:53:34 SMTP INBOUND: "334 VXNlcm5hbWU6"
2023-08-29 13:53:34 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2023-08-29 13:53:34 CLIENT -> SERVER: bWlsYW4yMnBhcm1hckBnbWFpbC5jb20=
2023-08-29 13:53:34 SMTP INBOUND: "334 UGFzc3dvcmQ6"
2023-08-29 13:53:34 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2023-08-29 13:53:34 CLIENT -> SERVER: Z0VuTGprVndwUE9ZMlJEUQ==
2023-08-29 13:53:36 SMTP INBOUND: "535 Incorrect authentication data"
2023-08-29 13:53:36 SERVER -> CLIENT: 535 Incorrect authentication data
2023-08-29 13:53:36 SMTP ERROR: Password command failed: 535 Incorrect authentication data
SMTP Error: Could not authenticate.
2023-08-29 13:53:36 CLIENT -> SERVER: QUIT
2023-08-29 13:53:36 SMTP INBOUND: "221 ssd.lncloud.in closing connection"
2023-08-29 13:53:36 SERVER -> CLIENT: 221 ssd.lncloud.in closing connection
2023-08-29 13:53:36 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting