Welcome Guest, Not a member yet? Register   Sign In
SMTP Error - Undefined index: Subject
#1

[eluser]mwolf[/eluser]
I am trying to setup email to send via a SMTP service I registered for and I keep getting the Undefined index: Subject error message.

Code:
$this->load->library('email', $config);
        $this->email->from('[email protected]', 'Support');
        $this->email->to('[email protected]');
        $this->email->message('This is my message');
        $this->email->subject('This is my subject');
        $this->email->send();

When outputting print_debuger, I see the following:

Code:
User-Agent: CodeIgniter
Date: Wed, 23 Dec 2009 12:40:52 -0600
From: "Support"
Return-Path:
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=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?This_is_my_subject?=
This is my message


I don't see any issues, but it continues to throw the same error.

Code:
A PHP Error was encountered

Severity: Notice
Message: Undefined index: Subject
Filename: libraries/Email.php
Line Number: 940

Any idea what I am doing wrong? Any help is appreciated!


Messages In This Thread
SMTP Error - Undefined index: Subject - by El Forum - 12-23-2009, 12:42 PM
SMTP Error - Undefined index: Subject - by El Forum - 12-23-2009, 01:11 PM
SMTP Error - Undefined index: Subject - by El Forum - 12-23-2009, 01:36 PM
SMTP Error - Undefined index: Subject - by El Forum - 12-23-2009, 03:08 PM
SMTP Error - Undefined index: Subject - by El Forum - 12-23-2009, 04:09 PM
SMTP Error - Undefined index: Subject - by El Forum - 02-19-2010, 05:48 AM
SMTP Error - Undefined index: Subject - by El Forum - 05-23-2010, 01:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB