CI_Email::to()

to($to)

Parameters:
  • $to (mixed) – Comma-delimited string or an array of e-mail addresses
Returns:

CI_Email instance (method chaining)

Return type:

CI_Email

Sets the email address(s) of the recipient(s). Can be a single e-mail, a comma-delimited list or an array:

$this->email->to('[email protected]');
$this->email->to('[email protected], [email protected], [email protected]');
$this->email->to(
        array('[email protected]', '[email protected]', '[email protected]')
);
doc_CodeIgniter
2016-10-15 16:31:30
Comments
Leave a Comment

Please login to continue.