• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending Email Error

#1
[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' =>  'maleneholanda@gmail.com',
                        'smtp_pass' =>  '*****123456'
                );
                
                //email confirmation
                $this->load->library('email',$config);
                $this->email->set_newline('\r\n');
                $this->email->from('www.administrator@facebook.com', '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...


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.