Welcome Guest, Not a member yet? Register   Sign In
CI 2.0.1: $this->email->to() not being set
#1

[eluser]Matt Stein[/eluser]
As the title suggests, the email debugger is tracing everything properly and indicating that the "mail" protocol is sending as it should. The only problem is that I don't get the email, and it looks like the "To:" field isn't being set.

All addresses are valid, have used $this->email->clear() for good measure, and config is stored in PHP file so there's not been any initialization. No other errors or indications that anything is wrong.

Code:
$this->load->library('email');
$this->email->from('[email protected]', $this->lang->line('app_name'));
$this->email->to($user->email);
$this->email->bcc('[email protected]');
$this->email->subject($subject);
$this->email->message($message);    
$this->email->send();

Code:
User-Agent: CodeIgniter
Date: Mon, 25 Jul 2011 17:07:41 -0400
From: "App Name"
Return-Path:
Bcc: [email protected]
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: multipart/alternative; boundary="B_ALT_4e2ddb1dd9c58"

Did I miss something?
#2

[eluser]InsiteFX[/eluser]
And were are you getting $user->email from?
#3

[eluser]Matt Stein[/eluser]
Just a user model -- that much works. It's a valid email address, which I've confirmed both by tracing and typing a string in directly. Same result.

I'm starting to think this is a MAMP + ISP problem. Moved from Seattle to Orlando(ish) and am now on a different ISP (Comcast to ATT U-Verse). None of my CI apps or MAMP-served stuff is sending email.
#4

[eluser]Matt Stein[/eluser]
Actually, never mind. This whole thing was a result of my ISP change, not something CI related.




Theme © iAndrew 2016 - Forum software by © MyBB