|
| $useragent = "CodeIgniter" |
|
| $mailpath = "/usr/sbin/sendmail" |
|
| $protocol = "mail" |
|
| $smtp_host = "" |
|
| $smtp_user = "" |
|
| $smtp_pass = "" |
|
| $smtp_port = "25" |
|
| $smtp_timeout = 5 |
|
| $smtp_crypto = "" |
|
| $wordwrap = TRUE |
|
| $wrapchars = "76" |
|
| $mailtype = "text" |
|
| $charset = "utf-8" |
|
| $multipart = "mixed" |
|
| $alt_message = '' |
|
| $validate = FALSE |
|
| $priority = "3" |
|
| $newline = "\n" |
|
| $crlf = "\n" |
|
| $send_multipart = TRUE |
|
| $bcc_batch_mode = FALSE |
|
| $bcc_batch_size = 200 |
|
| $_safe_mode = FALSE |
|
| $_subject = "" |
|
| $_body = "" |
|
| $_finalbody = "" |
|
| $_alt_boundary = "" |
|
| $_atc_boundary = "" |
|
| $_header_str = "" |
|
| $_smtp_connect = "" |
|
| $_encoding = "8bit" |
|
| $_IP = FALSE |
|
| $_smtp_auth = FALSE |
|
| $_replyto_flag = FALSE |
|
| $_debug_msg = array() |
|
| $_recipients = array() |
|
| $_cc_array = array() |
|
| $_bcc_array = array() |
|
| $_headers = array() |
|
| $_attach_name = array() |
|
| $_attach_type = array() |
|
| $_attach_disp = array() |
|
| $_protocols = array('mail', 'sendmail', 'smtp') |
|
| $_base_charsets = array('us-ascii', 'iso-2022-') |
|
| $_bit_depths = array('7bit', '8bit') |
|
| $_priorities = array('1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)') |
|
__construct |
( |
|
$config = array() ) | |
|
Constructor - Sets Email Preferences
The constructor can be passed an array of config values
Build final headers
protected
- Parameters
-
- Returns
- string
Build Final Body and attachments
protected
- Returns
- void
Build alternative plain text message
This public function provides the raw message for use in plain-text headers of HTML-formatted emails. If the user hasn't specified his own alternative message it creates one by stripping the HTML
protected
- Returns
- string
Get content type (text/html/attachment)
protected
- Returns
- string
_get_encoding |
( |
|
$return = TRUE ) | |
|
|
protected |
Get Mail Encoding
protected
- Parameters
-
- Returns
- string
Get Hostname
protected
- Returns
- string
Get IP
protected
- Returns
- string
Get the Message ID
protected
- Returns
- string
Mime message
protected
- Returns
- string
_get_protocol |
( |
|
$return = TRUE ) | |
|
|
protected |
Get Mail Protocol
protected
- Parameters
-
- Returns
- string
Get SMTP data
protected
- Returns
- string
Mime Types
protected
- Parameters
-
- Returns
- string
_prep_q_encoding |
( |
|
$str, |
|
|
|
$from = FALSE |
|
) |
| |
|
protected |
Prep Q Encoding
Performs "Q Encoding" on a string for use in email headers. It's related but not identical to quoted-printable, so it has its own method
public
- Parameters
-
str | |
bool | // set to TRUE for processing From: headers |
- Returns
- str
_prep_quoted_printable |
( |
|
$str, |
|
|
|
$charlim = '' |
|
) |
| |
|
protected |
_remove_nl_callback |
( |
|
$matches) | |
|
|
protected |
Strip line-breaks via callback
protected
- Returns
- string
_send_command |
( |
|
$cmd, |
|
|
|
$data = '' |
|
) |
| |
|
protected |
Send SMTP command
protected
- Parameters
-
- Returns
- string
Send SMTP data
protected
- Returns
- bool
Send using mail()
protected
- Returns
- bool
Send using Sendmail
protected
- Returns
- bool
Send using SMTP
protected
- Returns
- bool
Set Message Boundary
protected
- Returns
- void
Set RFC 822 Date
protected
- Returns
- string
_set_error_message |
( |
|
$msg, |
|
|
|
$val = '' |
|
) |
| |
|
protected |
Set Message
protected
- Parameters
-
- Returns
- string
_set_header |
( |
|
$header, |
|
|
|
$value |
|
) |
| |
|
protected |
Add a Header Item
protected
- Parameters
-
- Returns
- void
SMTP Authenticate
protected
- Returns
- bool
SMTP Connect
protected
- Parameters
-
- Returns
- string
Spool mail to the mail server
protected
- Returns
- bool
Convert a String to an Array
protected
- Parameters
-
- Returns
- array
Unwrap special elements
protected
- Returns
- void
Write Headers as a string
protected
- Returns
- void
attach |
( |
|
$filename, |
|
|
|
$disposition = 'attachment' |
|
) |
| |
Assign file attachments
public
- Parameters
-
- Returns
- void
Batch Bcc Send. Sends groups of BCCs in batches
public
- Returns
- bool
bcc |
( |
|
$bcc, |
|
|
|
$limit = '' |
|
) |
| |
Set BCC
public
- Parameters
-
- Returns
- void
Set CC
public
- Parameters
-
- Returns
- void
clear |
( |
|
$clear_attachments = FALSE ) | |
|
Initialize the Email Data
public
- Returns
- void
from |
( |
|
$from, |
|
|
|
$name = '' |
|
) |
| |
Set FROM
public
- Parameters
-
- Returns
- void
initialize |
( |
|
$config = array() ) | |
|
Initialize preferences
public
- Parameters
-
- Returns
- void
Set Body
public
- Parameters
-
- Returns
- void
Get Debug Message
public
- Returns
- string
reply_to |
( |
|
$replyto, |
|
|
|
$name = '' |
|
) |
| |
Set Reply-to
public
- Parameters
-
- Returns
- void
Send Email
public
- Returns
- bool
set_alt_message |
( |
|
$str = '' ) | |
|
Set Multipart Value
public
- Parameters
-
- Returns
- void
Set CRLF
public
- Parameters
-
- Returns
- void
set_mailtype |
( |
|
$type = 'text' ) | |
|
Set Mailtype
public
- Parameters
-
- Returns
- void
set_newline |
( |
|
$newline = "\n" ) | |
|
Set Newline Character
public
- Parameters
-
- Returns
- void
Set Priority
public
- Parameters
-
- Returns
- void
set_protocol |
( |
|
$protocol = 'mail' ) | |
|
Set Protocol
public
- Parameters
-
- Returns
- void
set_wordwrap |
( |
|
$wordwrap = TRUE ) | |
|
Set Wordwrap
public
- Parameters
-
- Returns
- void
Set Email Subject
public
- Parameters
-
- Returns
- void
Set Recipients
public
- Parameters
-
- Returns
- void
Email Validation
public
- Parameters
-
- Returns
- bool
Validate Email Address
public
- Parameters
-
- Returns
- bool
word_wrap |
( |
|
$str, |
|
|
|
$charlim = '' |
|
) |
| |
Word Wrap
public
- Parameters
-
- Returns
- string
The documentation for this class was generated from the following file:
- system/libraries/Email.php