The error you are getting from OpenSSL indicates that the SSL extension of PHP is compiled and loaded so no need to compile or load any .so or .dlls.
This is most likely a CA verfication issue - your SSL client (in this case PHP) is trying to verify the server's authenticity using root certificates; That's good - the only problem is this fails. Usually this means one of two things:
The server does not present a valid SSL certificate; This is unlikely for a well established email provider, I'm guessing you're using Google so this is probably not the issue.
More likely, your server does not have the up-to-date root certificates installed, or PHP does not know where they are. This is a configuration issue and solving it differs from server to server depending on your Linux distro and on how you installed PHP (e.g. from source, distro packages etc.). If you can provide more details about that, it may be possible to help.
You can send email from localhost with minimum configuration.
Please check below steps to send an email from localhost.
In the sendmail.ini file (C:\xampp\sendmail\sendmail.ini), make the following changes:
smtp_server=smtp.gmail.com
smtp_port=587 (some recommend using smtp_port=25 but for me 587 worked)
error_logfile=error.log
debug_logfile=debug.log
auth_username=myemail@gmail.com
auth_password=yourgmailpassword
force_sender=myemail@gmail.com
Next, make the following change in your php.ini (C:\xampp\php\php.ini) file:
sendmail_path = â\âC:\xampp\sendmail\sendmail.exe\â -tâ
t's very easy to configure php.ini for sending e-mails from your server.You just need to configure php.ini and sendmail.ini correctly.
First you have to configure sendmail_path in your php.ini file it should have to point to executable sendmail file with proper flags
for example , ;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" (which is already in your php.ini file need to just remove comment) and other assignments to sendmail_path need to be commented.
after configuring php.ini file you need to configure sendmail.ini file ,in that
first smtp_server=mail.gmail.com (as you want to use gmail as smtp server), second smtp_port=465 (if not worked try 587), third auth_username= yourid@gmail.com auth_password=yourpassword
after this restart your server.
I hope this will help you.
Best Answer
I had same problems. Use debug mode for magento and for SMTP Pro. I had to remove the module and it worked. Log
/var/logs/