Welcome Guest, Not a member yet? Register   Sign In
no $this->email->to generates error
#1

[eluser]xpix[/eluser]
Hi,

When using the mail class whithout providing a "to" only a "bcc" I get this error:


Code:
A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Email.php

Line Number: 1519

Here's the line:
Code:
if ( ! mail($this->_recipients, $this->_subject, $this->_finalbody, $this->_header_str, "-f ".$this->clean_email($this->_headers['From'])))

I'm guessing the error comes from the $this->_recipients which is empty or something.

I think that this should not happen for when not using the "to".

Any ideas how to fix this?


Thank You
#2

[eluser]xpix[/eluser]
I guess this is a case where I need to use a loop to send emails.
Please ignore this post. Maybe an admin can delete it.

Thx




Theme © iAndrew 2016 - Forum software by © MyBB