Welcome Guest, Not a member yet? Register   Sign In
Send emails through CI Email library
#1

[eluser]Unknown[/eluser]
Hello...I'm developing a system wich has to send emails to notify something to someone..

I'm using XAMP server and the CI Email library....

here is the code for my controller...

Code:
function email(){

$this->CI = &get;_instance();
        // Load needed files
        $this->CI->load->library('email');
        $this->CI->load->helper('email');

$this->CI->email->from('[email protected]','Aldo Saucedo');

$this->email->to('[email protected]');

$this->email->cc('[email protected]');

//$this->email->bcc('[email protected]');

$this->email->subject('Prueba envio notificaciones');

$this->email->message('Hola, ya tienes que pagar!');

$data['title']='Sending email...';

$data['header']='Sending email now...';


$data['message']=$this->email->send()?'Message was sent successfully!':'Error sending email!';

$data['page'] = $this->config->item('softcredit_template_admin') . 'email_view';
            $data['contentx'] = $this->config->item('softcredit_template_admin') . 'email_view';
            $data['module'] = 'cobranza';
            $this->page->set_crumb($data['header'],$data['page']);            
            $this->load->module_view('cobranza',$this->_container,$data);                

}

I'm using QK SMTP SERVER
When I test test my php function whith the server off, I get this message...


Message: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

Filename: libraries/Email.php

Line Number: 1444


when I test de function whit the server running, the view shows me "Message was sent successfully!" BUT, the QK SMTP SERVER console shows me that the emails are in queue and they never sent!!

HOW CAN I FIX THAT PROBLEM!!!??? :vampire:

I really hope someone can help me

Thanks for your time!! ;-)


Messages In This Thread
Send emails through CI Email library - by El Forum - 11-08-2010, 02:03 PM
Send emails through CI Email library - by El Forum - 11-09-2010, 04:52 AM
Send emails through CI Email library - by El Forum - 11-09-2010, 05:49 AM
Send emails through CI Email library - by El Forum - 11-09-2010, 09:54 AM
Send emails through CI Email library - by El Forum - 11-09-2010, 10:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB