Email Class - does not send when using an array for the TO |
[eluser]corkscrew[/eluser]
Attempting to send emails using the CI Email Class. Sends emails as long as I use a comma-delimited list of email addresses. If I use an array (from the db) it displays a message saying that the email was sent - but does not actually send an email. That is - no messages are received. very confusing - any ideas would be appreciated. Code: $this->load->library('email');
[eluser]Derek Allard[/eluser]
The docs say Quote:Sets the email address(s) of the recipient(s). Can be a single email, a comma-delimited list or an array: But it wouldn't be a bad idea to support arrays in there also if you wanted to drop some code into feature requests. If you have an array and need a comma-delimited list, take a look at implode() |
Welcome Guest, Not a member yet? Register Sign In |