CodeIgniter Forums
Codeigniter and - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Codeigniter and (/thread-31351.html)

Codeigniter and - El Forum - 06-15-2010

Hi. I've been using Codeigniter for a while now but I cant get it to work with my smtp server My code is:

$config = Array(
    'protocol' => 'smtp',
    'smtp_host' => '',
    'smtp_port' => 2525,
    'smtp_user' => '[email protected]',
    'smtp_pass' => 'accountpassword'
$this->load->library('email', $config);

$this->email->from('[email protected]', 'Account Manager');
$this->email->to('[email protected]');
if ($this->email->send() == FALSE){
    echo 'false';
    echo 'true';

The email is sent from my shared host IP instead of I tested my account on Thunderbird and it worked. I've been trying to make it work for hours and all I can do for now is to ask for a little help.


Codeigniter and - El Forum - 06-16-2010

Hi Tomassi, here you´ll find a great tutorial for mail sending with CI.

Hope it helps