Tips:
1) You need to enable SSL in PHP.ini
2) Unfortunately WordPress doesn’t give any message when SMTP is unsuccessful and seems to indicate it is. I had to hack /wp-includes/class-smtp.php inserting after this (Line 124 ):
if(empty($this->smtp_conn)) {
the following code:
echo($errstr);die();