Mail is configured and is working on other sites in localhost but I am not able to find the problem with current WordPress project I am working on. I tested using WP Mail SMTP plugin also but it's not working for this particular WordPress installation only. Even on the live server it has a problem and I had duplicated the same site on my local machine using duplicator plugin.
There was a problem while sending a test email. Related debugging output is shown below:
Versions: WordPress: 5.1.1 WordPress MS: No PHP: 5.6.40 WP Mail SMTP: 1.2.5
Params: Mailer: mail Constants: No
Server: PHP.mail(): Yes Apache.mod_security: No