Welcome Guest, Not a member yet? Register   Sign In
Email sending - Undefined index: Form
#1

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

Severity: Notice

Message: Undefined index: From

Filename: libraries/Email.php

Line Number: 1160
Code:
[b]A PHP Error was encountered[/b]

Severity: Notice

Message: Undefined index: From

Filename: libraries/Email.php

Line Number: 850
Code:
[b]A PHP Error was encountered[/b]

Severity: Notice

Message: Undefined index: Return-Path

Filename: libraries/Email.php

Line Number: 525
Code:
[b]A PHP Error was encountered[/b]

Severity: Notice

Message: Undefined index: Subject

Filename: libraries/Email.php

Line Number: 869
Code:
[b]A PHP Error was encountered[/b]

Severity: Notice

Message: Undefined index: From

Filename: libraries/Email.php

Line Number: 1328
Code:
[b]A PHP Error was encountered[/b]

Severity: Warning

Message: mail() expects parameter 1 to be string, array given

Filename: libraries/Email.php

Line Number: 1328
Code:
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.
Code:
User-Agent: CodeIgniter
Date: Sat, 28 Jul 2007 13:46:11 +0200
Reply-To: "" <>
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <46ab2c833b07d>
Mime-Version: 1.0

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Is there something wrong with my form? I have my form in the view as:
Code:
echo"
<div class=\"yes\">".form_open('articles/apply')."<table cellpadding.....

Does it matter?

Thanks
#2

[eluser]Silvrbak[/eluser]
Getting the same error. Were you able to fix this?
#3

[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);
$this->email->from('[email protected]');
$this->email->subject('Here is your info '.$name);
$this->email->message('Hi '.$name.' Here is the info you requested.');
$this->email->send();

Make sure if you're passing variables in to these that they contain data.
#4

[eluser]Silvrbak[/eluser]
My initialize call was after the parameters & before the send(). Fix it. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB