Email Server configuration issue

I’m facing issue with Nextcloud’s Email server and the Mail app which is not working .

Under “Settings > Basic Settings > Email Server”, I entered all the correct information to connect to my smtp server.

Nextcloud version: 27.1.3

Operating system : Ubuntu 22.4 LTS

Apache or nginx version: Apache/2.4.57

PHP version: PHP 8.2.12

Please help me in fixing this issue .
php.conf
php.conf-1

Check your actual server settings to make sure they are correct, because Nextcloud does not actually include an Email server itself

Find out if what you entered matches your server