PHP mailer SMTP not working

I figured this out... Too many hours spend on something like this.. I've added virtual host in XAMPP:

PHP mailer SMTP not working

I figured this out... Too many hours spend on something like this.. I've added virtual host in XAMPP:

<VirtualHost *:80>
 ServerAdmin webmaster@localhost

 DocumentRoot "D:/xampp/htdocs/BHP"
 ServerName bhpsmart.com
 SSLEngine on
 SSLCertificateFile "conf/ssl.crt/server.crt"
 SSLCertificateKeyFile "conf/ssl.key/server.key"
 <Directory "D:/xampp/htdocs/BHP">
  Options All
  AllowOverride All
  Order allow,deny
  Allow from all
  Require all granted
 </Directory>

 ErrorLog logs/platforma-error.log
 LogLevel info
 CustomLog logs/platforma.log combined
</VirtualHost>

They key lines are :

SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"