CodeIgniter Forums
CI 2.0.1: $this->email->to() not being set - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI 2.0.1: $this->email->to() not being set (/showthread.php?tid=43855)



CI 2.0.1: $this->email->to() not being set - El Forum - 07-25-2011

[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?


CI 2.0.1: $this->email->to() not being set - El Forum - 07-25-2011

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


CI 2.0.1: $this->email->to() not being set - El Forum - 07-25-2011

[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.


CI 2.0.1: $this->email->to() not being set - El Forum - 07-25-2011

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