I tried the outlook and use the right configuration
Mailer: Other SMTP
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Debug Output:
Connection: opening to smtp.office365.com:587, timeout=300, options=array()
Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.office365.com:587 (Connection timed out) [/opt/bitnami/wordpress/wordpress-uat/B2C_website/wp-includes/PHPMailer/SMTP.php line 375]
SMTP ERROR: Failed to connect to server: Connection timed out (110)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Source
WP Mail SMTP
/opt/bitnami/wordpress/wordpress-uat/B2C_website/wp-content/plugins/wp-mail-smtp/src/Admin/SetupWizard.php (line: 1151)
This is the new error