title: i'm trying to send emails using PHPmailer but i Get this error
body: <p>i get this errors </p>
  
  <blockquote>
    <p>2020-06-03 21:08:07 Connection: opening to ssl://smtp.gmail.com:25, timeout=300, options=array()
    2020-06-03 21:08:07 Connection failed. </p>
    
    <p>Error #2: stream_socket_client(): SSL operation failed with code 1. </p>
    
    <p>OpenSSL Error messages:error:1408F10B:SSL routines:ssl3_get_record:wrong version number [C:\xampp\htdocs\Go\vendor\phpmailer\phpmailer\src\SMTP.php line 344]</p>
    
    <p>2020-06-03 21:08:07 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [C:\xampp\htdocs\Go\vendor\phpmailer\phpmailer\src\SMTP.php line 344]</p>
    
    <p>2020-06-03 21:08:07 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:25 (Unknown error) [C:\xampp\htdocs\Go\vendor\phpmailer\phpmailer\src\SMTP.php line 344]</p>
    
    <p>2020-06-03 21:08:07 SMTP ERROR: Failed to connect to server: (0)
    SMTP connect() failed. <a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" rel="nofollow noreferrer">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a></p>
    
    <p>Message could not be sent.Mailer Error: SMTP connect() failed. <a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" rel="nofollow noreferrer">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a></p>
  </blockquote>
  
  <pre><code>&lt;?php
  require './vendor/autoload.php';
  
  
  $send = new PHPMailer\PHPMailer\PHPMailer();
  
  $send-&gt;SMTPDebug = 4;// Enable verbose debug output
  
  $send-&gt;isSMTP();                                      // Set mailer to use SMTP
  $send-&gt;Host = 'smtp.gmail.com';  // Specify main and backup SMTP servers
  $send-&gt;SMTPAuth = true;                               // Enable SMTP authentication
  $send-&gt;Username = 'abdelkbirkh2@gmail.com';                 // SMTP username
  $send-&gt;Password = 'µµµµµµ';                           // SMTP password
  $send-&gt;SMTPSecure = 'ssl';                            // Enable TLS encryption, `ssl` also accepted
  $send-&gt;Port = 25;                                    // TCP port to connect to
  
  $send-&gt;setFrom('abdelkbirk@gmail.com', 'Mailer');
  $send-&gt;addAddress('abdo9@gmail.com', 'Joe User');     // Add a recipient
  $send-&gt;addAddress('abdok79@gmail.com');               // Name is optional
  $send-&gt;addReplyTo('abdelk2@gmail.com', 'Information');
  $send-&gt;addCC('abdelkbir32@gmail.com');
  $send-&gt;addBCC('abdelkbirk32@gmail.com');
  
  // $send-&gt;addAttachment('/var/tmp/file.tar.gz');         // Add attachments
  // $send-&gt;addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name
  $send-&gt;isHTML(true);                                  // Set email format to HTML
  
  $send-&gt;Subject = 'Here is the subject';
  $send-&gt;Body    = 'This is the HTML message body &lt;b&gt;in bold!&lt;/b&gt;';
  $send-&gt;AltBody = 'This is the body in plain text for non-HTML mail clients';
  
  if(!$send-&gt;send()) {
      echo 'Message could not be sent.';
      echo 'Mailer Error: ' . $send-&gt;ErrorInfo;
  } else {
      echo 'Message has been sent';
  }
  </code></pre>