Свойство | Тип | Описание | |
---|---|---|---|
$alt_message | string | Alternative message (for HTML messages only) | |
$bcc_batch_mode | boolean | Whether to send messages to BCC recipients in batches. | |
$bcc_batch_size | integer | BCC Batch max number size. | |
$charset | string | Character set (default: utf-8) | |
$crlf | string | RFC 2045 specifies that for 'quoted-printable' encoding, "\r\n" must be used. However, it appears that some servers (even on the receiving end) don't handle it properly and switching to "\n", while improper, is the only solution that seems to work for all environments. | |
$dsn | boolean | Whether to use Delivery Status Notification. | |
$mailpath | string | Path to the Sendmail binary. | |
$mailtype | Message format. | ||
$multipart | Multipart message | ||
$newline | Use "\r\n" to comply with RFC 822. | ||
$priority | X-Priority header value. | ||
$protocol | Which method to use for sending e-mails. | ||
$send_multipart | boolean | Yahoo! doesn't seem to like these. | |
$smtp_crypto | SMTP Encryption | ||
$smtp_host | string | STMP Server host | |
$smtp_keepalive | boolean | SMTP persistent connection | |
$smtp_pass | string | SMTP Password | |
$smtp_port | integer | SMTP Server port | |
$smtp_timeout | integer | SMTP connection timeout in seconds | |
$smtp_user | string | SMTP Username | |
$useragent | string | Used as the User-Agent and X-Mailer headers' value. | |
$validate | boolean | Whether to validate e-mail addresses. | |
$wordwrap | boolean | Whether to apply word-wrapping to the message body. | |
$wrapchars | integer | Number of characters to wrap at. |
Свойство | Тип | Описание | |
---|---|---|---|
$_alt_boundary | string | multipart/alternative boundary | |
$_atc_boundary | string | Attachment boundary | |
$_attachments | array | Attachment data | |
$_base_charsets | string[] | Character sets valid for 7-bit encoding, excluding language suffix. | |
$_bcc_array | string[] | BCC Recipients | |
$_bit_depths | string[] | Valid mail encodings | |
$_body | string | Message body | |
$_cc_array | string[] | CC Recipients | |
$_debug_msg | string | Debug messages | |
$_encoding | Mail encoding | ||
$_finalbody | string | Final message body to be sent. | |
$_header_str | string | Final headers to send | |
$_headers | string[] | Message headers | |
$_priorities | string[] | Actual values to send with the X-Priority header | |
$_protocols | string[] | Valid $protocol values | |
$_recipients | string[] | Recipients | |
$_replyto_flag | boolean | Whether to send a Reply-To header | |
$_safe_mode | boolean | Whether PHP is running in safe mode. Initialized by the class constructor. | |
$_smtp_auth | boolean | Whether to perform SMTP authentication | |
$_smtp_connect | resource | SMTP Connection socket placeholder | |
$_subject | string | Subject header |
Метод | Описание | |
---|---|---|
__construct ( array $config = [] ) : void | Constructor - Sets Email Preferences | |
__destruct ( ) : void | Destructor - Releases Resources | |
attach ( string $file, string $disposition = '', string $newname = NULL, string $mime = '' ) : CI_Email | Assign file attachments | |
attachment_cid ( string $filename ) : string | Set and return attachment Content-ID | |
batch_bcc_send ( ) : void | Batch Bcc Send. Sends groups of BCCs in batches | |
bcc ( $bcc, $limit = '' ) : CI_Email | Set BCC | |
cc ( $cc ) : CI_Email | Set CC | |
clean_email ( $email ) : string |
Clean Extended Email Address: Joe Smith |
|
clear ( $clear_attachments = FALSE ) : CI_Email | Initialize the Email Data | |
from ( string $from, string $name = '', string $return_path = NULL ) : CI_Email | Set FROM | |
initialize ( $config = [] ) : CI_Email | Initialize preferences | |
message ( $body ) : CI_Email | Set Body | |
print_debugger ( array $include = ['headers', 'subject', 'body'] ) : string | Get Debug Message | |
reply_to ( $replyto, $name = '' ) : CI_Email | Set Reply-to | |
send ( boolean $auto_clear = TRUE ) : boolean | Send Email | |
set_alt_message ( $str ) : CI_Email | Set Multipart Value | |
set_crlf ( $crlf = " " ) : CI_Email | Set CRLF | |
set_header ( $header, $value ) : CI_Email | Add a Header Item | |
set_mailtype ( $type = 'text' ) : CI_Email | Set Mailtype | |
set_newline ( $newline = " " ) : CI_Email | Set Newline Character | |
set_priority ( $n = 3 ) : CI_Email | Set Priority | |
set_protocol ( $protocol = 'mail' ) : CI_Email | Set Protocol | |
set_wordwrap ( $wordwrap = TRUE ) : CI_Email | Set Wordwrap | |
subject ( $subject ) : CI_Email | Set Email Subject | |
to ( $to ) : CI_Email | Set Recipients | |
valid_email ( $email ) : boolean | Email Validation | |
validate_email ( $email ) : boolean | Validate Email Address | |
word_wrap ( $str, $charlim = NULL ) : string | Word Wrap |
Метод | Описание | |
---|---|---|
_build_headers ( ) : string | Build final headers | |
_build_message ( ) : boolean | Build Final Body and attachments | |
_get_alt_message ( ) : string | Build alternative plain text message | |
_get_content_type ( ) : string | Get content type (text/html/attachment) | |
_get_encoding ( $return = TRUE ) : string | Get Mail Encoding | |
_get_hostname ( ) : string | Get Hostname | |
_get_message_id ( ) : string | Get the Message ID | |
_get_mime_message ( ) : string | Mime message | |
_get_protocol ( $return = TRUE ) : mixed | Get Mail Protocol | |
_get_smtp_data ( ) : string | Get SMTP data | |
_mime_types ( $ext = '' ) : string | Mime Types | |
_prep_q_encoding ( $str ) : string | Prep Q Encoding | |
_prep_quoted_printable ( $str ) : string | Prep Quoted Printable | |
_remove_nl_callback ( string $matches ) : string | Strip line-breaks via callback | |
_send_command ( $cmd, $data = '' ) : string | Send SMTP command | |
_send_data ( string $data ) : boolean | Send SMTP data | |
_send_with_mail ( ) : boolean | Send using mail() | |
_send_with_sendmail ( ) : boolean | Send using Sendmail | |
_send_with_smtp ( ) : boolean | Send using SMTP | |
_set_boundaries ( ) : void | Set Message Boundary | |
_set_date ( ) : string | Set RFC 822 Date | |
_set_error_message ( string $msg, string $val = '' ) : void | Set Message | |
_smtp_authenticate ( ) : boolean | SMTP Authenticate | |
_smtp_connect ( ) : string | SMTP Connect | |
_spool_email ( ) : boolean | Spool mail to the mail server | |
_str_to_array ( $email ) : array | Convert a String to an Array | |
_unwrap_specials ( ) : void | Unwrap special elements | |
_write_headers ( ) : void | Write Headers as a string |
public __construct ( array $config = [] ) : void | ||
$config | array | = array() |
Результат | void |
public __destruct ( ) : void | ||
Результат | void |
protected _build_headers ( ) : string | ||
Результат | string |
protected _build_message ( ) : boolean | ||
Результат | boolean |
protected _get_alt_message ( ) : string | ||
Результат | string |
protected _get_content_type ( ) : string | ||
Результат | string |
protected _get_encoding ( $return = TRUE ) : string | ||
Результат | string |
protected _get_hostname ( ) : string | ||
Результат | string |
protected _get_message_id ( ) : string | ||
Результат | string |
protected _get_mime_message ( ) : string | ||
Результат | string |
protected _get_protocol ( $return = TRUE ) : mixed | ||
Результат | mixed |
protected _get_smtp_data ( ) : string | ||
Результат | string |
protected _mime_types ( $ext = '' ) : string | ||
Результат | string |
protected _prep_q_encoding ( $str ) : string | ||
Результат | string |
protected _prep_quoted_printable ( $str ) : string | ||
Результат | string |
protected _remove_nl_callback ( string $matches ) : string | ||
$matches | string | |
Результат | string |
protected _send_command ( $cmd, $data = '' ) : string | ||
Результат | string |
protected _send_data ( string $data ) : boolean | ||
$data | string | |
Результат | boolean |
protected _send_with_mail ( ) : boolean | ||
Результат | boolean |
protected _send_with_sendmail ( ) : boolean | ||
Результат | boolean |
protected _send_with_smtp ( ) : boolean | ||
Результат | boolean |
protected _set_boundaries ( ) : void | ||
Результат | void |
protected _smtp_authenticate ( ) : boolean | ||
Результат | boolean |
protected _spool_email ( ) : boolean | ||
Результат | boolean |
protected _str_to_array ( $email ) : array | ||
Результат | array |
protected _unwrap_specials ( ) : void | ||
Результат | void |
protected _write_headers ( ) : void | ||
Результат | void |
public attachment_cid ( string $filename ) : string | ||
$filename | string | |
Результат | string |
public batch_bcc_send ( ) : void | ||
Результат | void |
public clean_email ( $email ) : string | ||
Результат | string |
public clear ( $clear_attachments = FALSE ) : CI_Email | ||
Результат | CI_Email |
public initialize ( $config = [] ) : CI_Email | ||
Результат | CI_Email |
public print_debugger ( array $include = ['headers', 'subject', 'body'] ) : string | ||
$include | array | List of raw data chunks to include in the output Valid options are: 'headers', 'subject', 'body' |
Результат | string |
public reply_to ( $replyto, $name = '' ) : CI_Email | ||
Результат | CI_Email |
public set_alt_message ( $str ) : CI_Email | ||
Результат | CI_Email |
public set_header ( $header, $value ) : CI_Email | ||
Результат | CI_Email |
public set_mailtype ( $type = 'text' ) : CI_Email | ||
Результат | CI_Email |
public set_newline ( $newline = " " ) : CI_Email | ||
Результат | CI_Email |
public set_priority ( $n = 3 ) : CI_Email | ||
Результат | CI_Email |
public set_protocol ( $protocol = 'mail' ) : CI_Email | ||
Результат | CI_Email |
public set_wordwrap ( $wordwrap = TRUE ) : CI_Email | ||
Результат | CI_Email |
public subject ( $subject ) : CI_Email | ||
Результат | CI_Email |
public valid_email ( $email ) : boolean | ||
Результат | boolean |
public validate_email ( $email ) : boolean | ||
Результат | boolean |
protected string $_alt_boundary | ||
Результат | string |
protected string $_atc_boundary | ||
Результат | string |
protected string[] $_base_charsets | ||
Результат | string[] |
protected string[] $_bit_depths | ||
Результат | string[] |
protected string $_finalbody | ||
Результат | string |
protected string $_header_str | ||
Результат | string |
protected string[] $_priorities | ||
Результат | string[] |
protected string[] $_protocols | ||
Результат | string[] |
protected bool $_replyto_flag | ||
Результат | boolean |
protected bool $_safe_mode | ||
Результат | boolean |
protected bool $_smtp_auth | ||
Результат | boolean |
protected resource $_smtp_connect | ||
Результат | resource |
public string $alt_message | ||
Результат | string |
public bool $bcc_batch_mode | ||
Результат | boolean |
public int $bcc_batch_size | ||
Результат | integer |
public string $crlf | ||
Результат | string |
public bool $dsn | ||
Результат | boolean |
public bool $send_multipart | ||
Результат | boolean |
public bool $smtp_keepalive | ||
Результат | boolean |
public int $smtp_timeout | ||
Результат | integer |
public string $useragent | ||
Результат | string |
public bool $validate | ||
Результат | boolean |
public bool $wordwrap | ||
Результат | boolean |
public int $wrapchars | ||
Результат | integer |