codeigniter email error: "Undefined index: Subject Filename: libraries/Email.php Line Number: 969" - 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: codeigniter email error: "Undefined index: Subject Filename: libraries/Email.php Line Number: 969" (/showthread.php?tid=49424) |
codeigniter email error: "Undefined index: Subject Filename: libraries/Email.php Line Number: 969" - El Forum - 02-18-2012 [eluser]rjm[/eluser] I cannot work out why I'm getting the error when attempting to send an email: Quote:A PHP Error was encountered Code: if($query = $this->member_contact->client_email($client_id)){ codeigniter email error: "Undefined index: Subject Filename: libraries/Email.php Line Number: 969" - El Forum - 02-19-2012 [eluser]InsiteFX[/eluser] And where did you place this code in a controller library etc? codeigniter email error: "Undefined index: Subject Filename: libraries/Email.php Line Number: 969" - El Forum - 02-19-2012 [eluser]rjm[/eluser] [quote author="InsiteFX" date="1329637195"]And where did you place this code in a controller library etc? [/quote] Yes its a in the controller folder. Is it a bug because I've read other posts with this error and no one has a solution? codeigniter email error: "Undefined index: Subject Filename: libraries/Email.php Line Number: 969" - El Forum - 02-19-2012 [eluser]InsiteFX[/eluser] Well I just tried it using SMTP on my system with CI 2.1.0 and it worked fine! Code: public function send_emails() No errors at all sending SMTP like this... Make sure you set the crlf and newline! And here was my response Code: 220 omta17.westchester.pa.mail.comcast.net comcast ESMTP server ready codeigniter email error: "Undefined index: Subject Filename: libraries/Email.php Line Number: 969" - El Forum - 02-20-2012 [eluser]rjm[/eluser] Thanks for the help. It was many problems rolled into one. The first one being that it doesnt work on port 25 for some reason. Luckily my host had an alternative port I could use. This is what worked for me: Code: function send_email($customer_email, $client_email, $comment_string){ |