Email sending - Undefined index: Form - 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: Email sending - Undefined index: Form (/showthread.php?tid=2301) |
Email sending - Undefined index: Form - El Forum - 07-28-2007 [eluser]Ji31[/eluser] Hi, I have already written almost whole my application by reading of User Guide an searching the forum, but now I'm out, so I registered. I'm trying to send the email, but I get this error: Code: [b]A PHP Error was encountered[/b] Code: [b]A PHP Error was encountered[/b] Code: [b]A PHP Error was encountered[/b] Code: [b]A PHP Error was encountered[/b] Code: [b]A PHP Error was encountered[/b] Code: [b]A PHP Error was encountered[/b] Code: Unable to send email using PHP mail(). Your server might not be configured to send mail using this method. Code: User-Agent: CodeIgniter Is there something wrong with my form? I have my form in the view as: Code: echo" Does it matter? Thanks Email sending - Undefined index: Form - El Forum - 04-18-2008 [eluser]Silvrbak[/eluser] Getting the same error. Were you able to fix this? Email sending - Undefined index: Form - El Forum - 04-18-2008 [eluser]woodydude[/eluser] Sounds like you're trying to send nothing. i.e. You're not setting the parameters up: Code: $this->email->to($address); Make sure if you're passing variables in to these that they contain data. Email sending - Undefined index: Form - El Forum - 04-18-2008 [eluser]Silvrbak[/eluser] My initialize call was after the parameters & before the send(). Fix it. Thanks. |