Welcome Guest, Not a member yet? Register   Sign In
bluehost and email
#1

[eluser]bennyhill[/eluser]
My application worked fine last year and now that I try it again, I can't send any emails from my controller. The debugger says it is sent but I do not receive anything in my inbox. Now when I use Bluehost's email client I send and receive and email just fine.


Message from debugger after email function runs.
Quote:Your message has been successfully sent using the following protocol: sendmail

User-Agent: CodeIgniter
Date: Wed, 21 Oct 2009 11:51:46 -0600
From: "Webmaster"
Return-Path:
To: [email protected]
Subject: Email Test
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Testing the email class.

I put in the above "bbbb"'s for privacy. Does anyone know if I have to change my settings?

I'm using this function

Code:
function sendConfirmation()
    {
        $config['protocol'] = 'sendmail';
        $config['mailpath'] = '/usr/sbin/sendmail';
        
        $this->email->initialize($config);
        
        $this->email->from('email account setup on bluehost', 'Webmaster');
        $this->email->to('recipients address');
        
        $this->email->subject('Email Test');
        $this->email->message('Testing the email class.');
        
        $this->email->send();
        
        return $this->email->print_debugger();
    }

I tried both "sendmail" and the default "mail()" protocols. I get no errors but the email is not being received. I'm thinking bluehost may have changed something.
#2

[eluser]bennyhill[/eluser]
Again I posted(gave up..haha) to soon.

Instead of
Code:
$this->email->from('[email protected]', 'Webmaster');

I needed

Code:
$this->email->from('[email protected]', '[email protected]');

I guess Bluehost is really strict on their "From:" headers.




Theme © iAndrew 2016 - Forum software by © MyBB