email - Mailer Error: Extension missing: openssl in php -
after of edited email.php source code,
here,
<?php // $email , $message data being // posted page our html contact form $email = $_request['email'] ; $message = $_request['message'] ; require_once('class.phpmailer.php'); require 'phpmailerautoload.php'; require 'class.smtp.php'; $mail = new phpmailer(); $body='hellooooo'; $mail->issmtp(); $mail->host = "ssl://smtp.gmail.com"; // specify main , backup server $mail->smtpauth = true; // turn on smtp authentication $mail->username = "mygmailid@gmail.com"; // smtp username $mail->password = "mygmailpassword"; // smtp password $mailer->smtpsecure = 'ssl'; $mailer->port = 465;//587; $mail->addaddress("bradm@inmotiontesting.com", "brad markle"); $mail->setfrom('rajaselva.csc@gmail.com','selva rani'); $mail->wordwrap = 50; $mail->ishtml(true); $mail->subject = "you have received feedback website!"; $mail->msghtml($body); if(!$mail->send()) { echo "message not sent. <p>"; echo "mailer error: " . $mail->errorinfo; exit; } echo "message has been sent"; ?>
here html:
<form method="post" action="email.php"> email: <input name="email" id="email" type="text" /><br /> message:<br /> <textarea name="message" id="message" rows="15" cols="40"></textarea><br /> <input type="submit" value="submit" /> </form>
after run, shows error this,
message not sent.
mailer error: extension missing: openssl
note: referred similar questions in stack, didn't me, posted new one. , m new php, want know particular section.
after all, removed semicolon in line extension=php_openssl.dll
in php.ini file
but still stays same error..
can help?
thanks,
Comments
Post a Comment