Hi Sanjeev,
I am using WP MAIL SMTP (Version 1.6.0) and my wordpress version is 5.2.2. I am getting below problem:
===========================
Could not connect to the SMTP host.
This means your web server was unable to connect to smtp.office365.com.
Typically this error is returned for one of the following reasons:
-SMTP settings are incorrect (wrong port, security setting, incorrect host).
-Your web server is blocking the connection.
-Your SMTP host is rejecting the connection.
Recommended next steps:
Triple check your SMTP settings including host address, email, and password, port, and security.
Contact your web hosting provider and ask them to verify your server can connect to smtp.office365.com on port 587 using tls encryption. Additionally, ask them if a firewall or security policy may be preventing the connection – many shared hosts block certain ports.
Note: this is the most common cause of this issue.
Contact your SMTP host to confirm you are using the correct username and password.
Verify with your SMTP host that your account has permissions to send emails using outside connections.
Need support?
WP Mail SMTP is a free plugin, and the team behind WPForms maintains it to give back to the WordPress community.
To access our world class support, please upgrade to WP Mail SMTP Pro. Along with getting expert support, you will also get Notification controls, Email Logging, and integrations for Amazon SES, Office 365, and Outlook.com.
Additionally, you can take advantage of our White Glove Setup. Sit back and relax while we handle everything for you! If you simply don’t have time or maybe you feel a bit in over your head – we got you covered.
As a valued WP Mail SMTP user, you will get 20% off regular pricing, automatically applied at checkout!
Alternatively, we also offer limited support on the www.ads-software.com support forums. You can create a support thread there, but please understand that free support is not guaranteed and is limited to simple issues. If you have an urgent or complex issue, then please consider upgrading to WP Mail SMTP Pro to access our priority support ticket system.
Click here to view the full Error Log for debugging
=============
Please suggest what should I do next.
Thanks,
Mahesh