CI_Email::print_debugger()

print_debugger([$include = array('headers', 'subject', 'body')]) Parameters: $include (array) – Which parts of the message to print out Returns: Formatted debug data Return type: string Returns a string containing any server messages, the email headers, and the email messsage. Useful for debugging. You can optionally specify which parts of the message should be printed. Valid options are: headers, subject, body. Example: // You need to pass FALSE while sending in order for the email

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::reply_to()

reply_to($replyto[, $name = '']) Parameters: $replyto (string) – E-mail address for replies $name (string) – Display name for the reply-to e-mail address Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the reply-to address. If the information is not provided the information in the :meth:from method is used. Example: $this->email->reply_to('[email protected]', 'Your Name');

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_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::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_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_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_DB_utility::csv_from_result()

csv_from_result($query[, $delim = ', '[, $newline = "n"[, $enclosure = '"']]]) Parameters: $query (object) – A database result object $delim (string) – The CSV field delimiter to use $newline (string) – The newline character to use $enclosure (string) – The enclosure delimiter to use Returns: The generated CSV file as a string Return type: string Translates a database result object into a CSV document.