CodeIgniter Forums
Sending Email Error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Sending Email Error (/showthread.php?tid=45534)



Sending Email Error - El Forum - 09-25-2011

[eluser]Unknown[/eluser]
hello guys,

I'm having problem in sending email...
This was the errors that appear after i have execute my code...

Code:
//email configuration
                $config = array(
                        'protocol'  =>  'smtp',
                        'smtp_host' =>  'ssl://smtp.googlemail.com',
                        'smtp_port' =>  465,
                        'smtp_user' =>  '[email protected]',
                        'smtp_pass' =>  '*****123456'
                );
                
                //email confirmation
                $this->load->library('email',$config);
                $this->email->set_newline('\r\n');
                $this->email->from('[email protected]', 'Facebook');
                $this->email->to($email);
                $this->email->subject('Registration Confirmation');
                $this->email->message('Please click this link to confirm your registration '.anchor('http://localhost/ci_you_register/user/register_confirm/'.$activation_code, ' Confirm Registration'));
                                
                echo 'Please click this link to confirm your registration '.anchor('http://localhost/ci_you_register/user/register_confirm/'.$activation_code, ' Confirm Registration');
                
                if($this->email->send())
                {
                    echo 'Your email was sent, successfully.';
                }
                else
                {
                    show_error($this->email->print_debugger());
                }
                //confirmation message view

The following SMTP error was encountered: 10 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:

The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

Can you please help me...