Message could not be sent.Mailer Error: Extension missing: openssl

Message could not be sent.Mailer Error: Extension missing: openssl

1);extension=php_openssl.dll been changed to extension=php_openssl.dll in in both apache and php.

2);extension_dir = "ext" has been changed from extension_dir = "ext"

3)i have restart the wamp server

4)i am using PHP 5.6.25 and added composer to same versionPHP 5.6.25

5) i have C:\wamp\bin\php\php5.6.25\extras\ssl\openssl.cnf i checked for the variable OPENSSL_CONFi dint have any variable i dont know  What to add System variable: OPENSSL_CONF

SOURCE:How to enable PHP's openssl extension to install Composer?

 if (isset($_POST))


  require 'PHPMailer/PHPMailerAutoload.php';

  $mail = new PHPMailer();

  $mail->SMTPDebug = 0;                               // Enable verbose deb

  $mail->isSMTP();                                      // Set mailer to use SMTP
  $mail->Host = '';  // Specify main and backup SMTP servers
  $mail->SMTPAuth = true;                               // Enable SMTP authentication
  $mail->Username = '';                 // SMTP username
  $mail->Password = 'siliconia';                           // SMTP password
  $mail->SMTPSecure = 'tls';                            // Enable TLS 'tls'encryption, `ssl` also accepted
  $mail->Port = 587;                                    // TCP port to connect to or 587 o

  $mail->addAddress('', 'user1');     // Add a recipient
  $mail->addAddress('');               // Name is optional
   //$mail->addReplyTo('', 'Information');

  //mail->addAttachment('/var/tmp/file.tar.gz');         // Add attachments
  //$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name
  $mail->isHTML(true);                                  // Set email format to HTML

  $mail->Subject = 'Registration Form';
  $mail->Body    = 'This body <b>in bold!</b>';
  $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

 if(!$mail->send()) {
 echo 'Message could not be sent.';
 echo 'Mailer Error: ' . $mail->ErrorInfo;
  } else {
 echo 'Message has been sent';
iman suhanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Albert MaineSoftware EngineerCommented:
Try installing openssl.  The home page is below.  Spoons to me like you don't have the binaries installed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
Installation / configuration for all of the PHP extensions is documented in the online man pages.  There are four links here that should help.  Often it's a good idea to read the user-contributed notes, too.
Ray PaseurCommented:
stale question
iman suhanAuthor Commented:
how do i close this question ??
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.