title: Getting error with mail in opencart
body: <p>I am working with <code>opencart</code>. I am setting <code>mail</code> on the server. I have set the details in <code>setting-&gt;mail</code> as follow</p>
  
  <p><code>Mail Protocol -&gt; SMTP
  SMTP Host -&gt; tls://smtp.gmail.com
  PORT -&gt; 587</code></p>
  
  <p>But when I am using this then getting following error :</p>
  
  <pre><code>SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
  
  OK
  
  &lt;b&gt;Warning&lt;/b&gt;: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in &lt;b&gt;C:\wampp\htdocs\upload\system\library\mail.php&lt;/b&gt; on line &lt;b&gt;221&lt;/b&gt;&lt;b&gt;Notice&lt;/b&gt;: Error: EHLO not accepted from server! in &lt;b&gt;C:\wampp\htdocs\upload\system\library\mail.php&lt;/b&gt; on line &lt;b&gt;238&lt;/b&gt;
  </code></pre>
  
  <p>Plz help me what may be the problem</p>