email not sending |
|||
|---|---|---|---|
| Date: | 03/12/2008 | Severity: | Major |
| Status: | Bogus | Reporter: | bevans |
| Version: | 1.6.1 | ||
| Keywords: | Helpers, Email Helper | ||
| Forum Thread: | http://codeigniter.com/forums/viewthread/73165/ | ||
Description
Not able to send emails using the Email Helper.
I get the following:
A PHP Error was encountered
Severity: Warning
Message: mail() expects parameter 1 to be string, array given
Filename: libraries/Email.php
Line Number: 1341
See forum thread:
http://codeigniter.com/forums/viewthread/73165/
Code Sample
$this->load->library('email');
$this->email->from('me@myemail.com', 'my message');
$this->email->to($_POST['email']);
$this->email->subject('Please confirm your email');
$this->email->message('Thank you for registering...');
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
if (!$this->email->send())
{
echo 'not able to send an email';
}
$this->email->print_debugger();
Expected Result
to be able to send an email
Actual Result
I get the following:
A PHP Error was encountered
Severity: Warning
Message: mail() expects parameter 1 to be string, array given
Filename: libraries/Email.php
Line Number: 1341
Comment on Bug Report
| Posted by: Derek Jones on 12 March 2008 7:12pm | |
|
|
This appears to be a local issue. |
