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

can someone help me with this 

This is my code:

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

 
     $config = array(
 
     'protocol' => 'smtp',
 
     'smtp_host' => 'smtp.gmail.com',
 
     'smtp_port' => 465,
 
     'smtp_user' => '[email protected]',
 
     'smtp_pass' => 'correo',
 
   
     
);

 
     //Load email library
 
     $this->load->library('email',$config);


 
     $this->email->from('[email protected]''Foreigner');
 
     $this->email->to('[email protected]');
 
     $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());
 
    }
 
   }

This is the error i am recieving


[color=#4f5155][size=small]hello: F[/size][/color]

[color=#4f5155][size=small]The following SMTP error was encountered: F[/size][/color]

[color=#4f5155][size=small]Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.[/size][/color]
DateThu28 Dec 2017 22:03:38 +0100
From
"Foreigner" <************.com>
Return-
Path: <*****************.com>
To: ****************************
Subject: =?UTF-8?Q?Foreigner=20Visitor?=
Reply-To: <*******************.com>
User-AgentCodeIgniter
X
-Sender: *************************.com
X
-MailerCodeIgniter
X
-Priority(Normal)
Message-ID: <5a455c2a0e9c7@whitesharkmedia.com>
Mime-Version1.0 
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