Error while sending email in Magento 2 using Mageplaza smtp

Job ID: 34335133

Budget: $10 – $30 USD

I am facing issue while setting up smtp using office365 from admin on magento 2. If you have resolved the error before, then bid only.You will fix this via anyscreen.

Error is
Warning: stream_socket_enable_crypto(): Peer certificate CN=`80.66.201.32.srvlist.ukfast.net' did not match expected CN=`smtp.office365.com' in /home/picopc/public_html/vendor/laminas/laminas-mail/src/Protocol/Smtp.php on line 22
Related categories: PHP Linux Magento DNS SMTP