sending email using Xampp |
-
arugama
Newbie
-
Posts: 7
Threads: 2
Joined: Dec 2017
Reputation:
0
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] Date: Thu, 28 Dec 2017 22:03:38 +0100 From: "Foreigner" <************.com> Return-Path: <*****************.com> To: **************************** Subject: =?UTF-8?Q?Foreigner=20Visitor?= Reply-To: <*******************.com> User-Agent: CodeIgniter X-Sender: *************************.com X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <5a455c2a0e9c7@whitesharkmedia.com> Mime-Version: 1.0
|
Messages In This Thread |
sending email using Xampp - by arugama - 12-28-2017, 02:30 PM
|