Welcome Guest, Not a member yet? Register   Sign In
sending email using Xampp
#4

(This post was last modified: 12-29-2017, 07:22 AM by arugama.)

i made the change, and this happen

A PHP Error was encountered
Severity: Warning

Message: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routinesConfusedsl3_get_server_certificate:certificate verify failed

Filename: libraries/Email.php

Line Number: 2063

Backtrace:

File: C:\xampp\htdocs\rest\application\controllers\Email.php
Line: 69
Function: send

File: C:\xampp\htdocs\rest\application\libraries\REST_Controller.php
Line: 742
Function: call_user_func_array

File: C:\xampp\htdocs\rest\index.php
Line: 315
Function: require_once


the new configuration

 
PHP Code:
 public function send_get()
 
   {
 
     //configuracion para gmail

 
     $config = array(
 
     'protocol' => 'smtp',
 
     'smtp_host' => 'ssl://smtp.gmail.com',
 
     'smtp_port' => 465,
 
     'mailtype' => 'html',
 
     'smtp_user' => '',
 
     'smtp_pass' => '',
 
     'newline' => "\r\n",
 
    );

 
     //Load email library


 
     $this->load->library('email',$config);
 
     $this->email->set_newline("\r\n");

 
     $this->email->from('''');
 
     $this->email->to('');
 
     $this->email->subject(' Visitor');
 
     $this->email->message('Testing the email class.');

 
    if($this->email->send()){
 
      echo "your email was sent";
 
    }
 
    else {
 
      show_error($this->email->print_debugger());
 
    }
 
   
Reply


Messages In This Thread
sending email using Xampp - by arugama - 12-28-2017, 02:30 PM
RE: sending email using Xampp - by jreklund - 12-29-2017, 06:47 AM
RE: sending email using Xampp - by arugama - 12-29-2017, 07:21 AM
RE: sending email using Xampp - by jreklund - 12-29-2017, 07:47 AM
RE: sending email using Xampp - by arugama - 12-29-2017, 08:23 AM
RE: sending email using Xampp - by InsiteFX - 12-29-2017, 10:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB