Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to send email
    text
    copied!<p>In the below codeigniter i want to send a email but i cant send it pls help me.</p> <pre><code> &lt;?php /** * SENDS EMAIL WITH GMAIL */ class Email extends CI_Controller { function index() { $config = Array( 'protocol' =&gt; 'smtp', 'smtp_host' =&gt; 'ssl://smtp.googlemail.com', 'smtp_port' =&gt; 465, 'smtp_user' =&gt; 'sltechdevelop@gmail.com ', 'smtp_pass' =&gt; 'highschool', 'mailtype' =&gt; 'html', 'charset' =&gt; 'iso-8859-1' ); $this-&gt;load-&gt;library('email', $config); $this-&gt;email-&gt;set_newline("\r\n"); $this-&gt;email-&gt;from('sltechdevelop@gmail.com', 'moses'); $this-&gt;email-&gt;to('sltechdevelop@gmail.com'); $this-&gt;email-&gt;subject('This is an email test'); $this-&gt;email-&gt;message('It is working. Great!'); if($this-&gt;email-&gt;send()) { echo 'Your email was sent, successfully.'; } else { show_error($this-&gt;email-&gt;print_debugger()); } } } ?&gt; </code></pre> <p>It is showing error </p> <pre><code>The following SMTP error was encountered: 65272624 Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? Unable to send data: AUTH LOGIN Failed to send AUTH LOGIN command. Error: Unable to send data: MAIL FROM: from: The following SMTP error was encountered: Unable to send data: RCPT TO: to: The following SMTP error was encountered: Unable to send data: DATA data: The following SMTP error was encountered: Unable to send data: User-Agent: CodeIgniter Date: Tue, 17 Sep 2013 16:54:03 +0000 From: "moses" Return-Path: To: sltechdevelop@gmail.com Subject: =?iso-8859-1?Q?This_is_an_email_test?= Reply-To: "sltechdevelop@gmail.com" X-Sender: sltechdevelop@gmail.com X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: &lt;5238892bc2bad@gmail.com&gt; Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_5238892bc2bbc" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_5238892bc2bbc Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit It is working. Great! --B_ALT_5238892bc2bbc Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable It is working. Great! --B_ALT_5238892bc2bbc-- Unable to send data: . </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload