title: PHPMailer error while checking SMTP
body: <p>I would like to create a website that requires registration, for a school project. I am using Windows 10, with Wamp Server 3.1.0. I would like, upon registration, for an email to be sent to the user's email address. Just to test it. I installed PHPMailer, using the composer. I run the example "check_smtp.php" that's in the PHPMailer github. When I run the example as it is, just using "smtp.gmail.com" instead of "smtp.example.com", what I get is this:</p>
  
  <pre><code>2017-12-15 17:02:11 Connection: opening to smtp.gmail.com:587, timeout=30, options=array() 
  2017-12-15 17:02:11 Connection: opened 
  2017-12-15 17:02:11 SERVER -&gt; CLIENT: 220 smtp.gmail.com ESMTP e124sm2870640wmg.34 - gsmtp 
  2017-12-15 17:02:11 CLIENT -&gt; SERVER: EHLO Angel 
  2017-12-15 17:02:12 SERVER -&gt; CLIENT: 250-smtp.gmail.com at your service, [46.176.22.104] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 
  2017-12-15 17:02:12 CLIENT -&gt; SERVER: STARTTLS 
  2017-12-15 17:02:12 SERVER -&gt; CLIENT: 220 2.0.0 Ready to start TLS 
  2017-12-15 17:02:12 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [C:\wamp64\vendor\phpmailer\phpmailer\src\SMTP.php line 404] SMTP error: Failed to start encryption: Connection failed. 
  2017-12-15 17:02:12 CLIENT -&gt; SERVER: QUIT 
  </code></pre>
  
  <p>I checked the php extensions, just to make sure, and php_openssl is activated.</p>
  
  <p>I have been fighting with this the whole day, checked every solution i could find, but I cannot seem to make it work.</p>