Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and Smtp.com

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

$config = Array(
    'protocol' => 'smtp',
    'smtp_host' => 'smtp.com',
    '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 Smtp.com. 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.


Messages In This Thread
Codeigniter and Smtp.com - by El Forum - 06-15-2010, 10:17 PM
Codeigniter and Smtp.com - by El Forum - 06-16-2010, 09:13 AM

Theme © iAndrew 2016 - Forum software by © MyBB