title: PHPMailer - this stream does not support SSL/crypto
body: <p>I'm trying to get PHPMailer working and keep getting this error:</p>
  
  <pre><code>PHP Warning:  stream_socket_enable_crypto(): this stream does not support SSL/crypto in /usr/share/php5/class.smtp.php on line 274
  </code></pre>
  
  <p>I've seen a few posts where people have fixed the problem by uncommenting this:
      extension=php_openssl.dll</p>
  
  <p>which I have done - and restarted apache.</p>
  
  <p>Any ideas?</p>
  
  <p>Here is the php example code I am using:</p>
  
  <p>Running php 5.3.17 and Apache 2.2.22 on OpenSuse 12.3</p>
  
  <pre><code>&lt;?php
  require_once('class.phpmailer.php');
  include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
  $mail             = new PHPMailer();
  
  $body             = file_get_contents('contents.html');
  $body             = eregi_replace("[\]",'',$body);
  
  $mail-&gt;IsSMTP(); // telling the class to use SMTP
  $mail-&gt;Host       = "mail.yourdomain.com"; // SMTP server
  $mail-&gt;SMTPDebug  = 1;                     // enables SMTP debug information (for testing)
  // 1 = errors and messages
  // 2 = messages only
  $mail-&gt;SMTPAuth   = true;                  // enable SMTP authentication
  $mail-&gt;SMTPSecure = "tls";                 // sets the prefix to the servier
  $mail-&gt;Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
  $mail-&gt;Port       = 587;                   // set the SMTP port for the GMAIL server
  $mail-&gt;Username   = "my email address";  // GMAIL username
  $mail-&gt;Password   = "my password";            // GMAIL password
  
  $mail-&gt;SetFrom('name@yourdomain.com', 'First Last');
  
  $mail-&gt;AddReplyTo("name@yourdomain.com","First Last");
  
  $mail-&gt;Subject    = "PHPMailer Test Subject via smtp (Gmail), basic";
  
  $mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
  
  $mail-&gt;MsgHTML($body);
  $address = "whoto@otherdomain.com";
  $mail-&gt;AddAddress($address, "John Doe");
  
  if(!$mail-&gt;Send()) {
  echo "Mailer Error: " . $mail-&gt;ErrorInfo;
  } else {
  echo "Message sent!";
  }
  
  ?&gt;
  </code></pre>