CI_Email::from()

from($from[, $name = ''[, $return_path = NULL]]) Parameters: $from (string) – “From” e-mail address $name (string) – “From” display name $return_path (string) – Optional email address to redirect undelivered e-mail to Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the email address and name of the person sending the email: $this->email->from('[email protected]', 'Your Name'); You can also set a Return-Path, to help redirect undelivered mail: $this-&

CI_Email::clear()

clear([$clear_attachments = FALSE]) Parameters: $clear_attachments (bool) – Whether or not to clear attachments Returns: CI_Email instance (method chaining) Return type: CI_Email Initializes all the email variables to an empty state. This method is intended for use if you run the email sending method in a loop, permitting the data to be reset between cycles. foreach ($list as $name => $address) { $this->email->clear(); $this->email->to($address);

CI_Email::cc()

cc($cc) Parameters: $cc (mixed) – Comma-delimited string or an array of e-mail addresses Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the CC email address(s). Just like the “to”, can be a single e-mail, a comma-delimited list or an array.

CI_Email::bcc()

bcc($bcc[, $limit = '']) Parameters: $bcc (mixed) – Comma-delimited string or an array of e-mail addresses $limit (int) – Maximum number of e-mails to send per batch Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the BCC email address(s). Just like the to() method, can be a single e-mail, a comma-delimited list or an array. If $limit is set, “batch mode” will be enabled, which will send the emails to batches, with each batch not exceeding the specified $lim

CI_Email::attachment_cid()

attachment_cid($filename) Parameters: $filename (string) – Existing attachment filename Returns: Attachment Content-ID or FALSE if not found Return type: string Sets and returns an attachment’s Content-ID, which enables your to embed an inline (picture) attachment into HTML. First parameter must be the already attached file name. $filename = '/img/photo1.jpg'; $this->email->attach($filename); foreach ($list as $address) { $this->email->to($address); $cid

CI_Email::attach()

attach($filename[, $disposition = ''[, $newname = NULL[, $mime = '']]]) Parameters: $filename (string) – File name $disposition (string) – ‘disposition’ of the attachment. Most email clients make their own decision regardless of the MIME specification used here. https://www.iana.org/assignments/cont-disp/cont-disp.xhtml $newname (string) – Custom file name to use in the e-mail $mime (string) – MIME type to use (useful for buffered data) Returns: CI_Email instance (method chaining) R

CI_Email

class CI_Email from($from[, $name = ''[, $return_path = NULL]]) Parameters: $from (string) – “From” e-mail address $name (string) – “From” display name $return_path (string) – Optional email address to redirect undelivered e-mail to Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the email address and name of the person sending the email: $this->email->from('[email protected]', 'Your Name'); You can also set a Return-Path, to help redirect undeliver

CI_DB_utility::xml_from_result()

xml_from_result($query[, $params = array()]) Parameters: $query (object) – A database result object $params (array) – An associative array of preferences Returns: The generated XML document as a string Return type: string Translates a database result object into an XML document.

CI_DB_utility::repair_table()

repair_table($table_name) Parameters: $table_name (string) – Name of the table to repair Returns: Array of repair messages or FALSE on failure Return type: array Repairs a database table.

CI_DB_utility::optimize_table()

optimize_table($table_name) Parameters: $table_name (string) – Name of the table to optimize Returns: Array of optimization messages or FALSE on failure Return type: array Optimizes a database table.