Constructor - Sets Email Preferences
The constructor can be passed an array of config values
CI_Email
CI_Email
([ $config = array()])
Assign file attachments
void
attach
(string $filename, [ $disposition = 'attachment'])
-
string
$filename
-
$disposition
Batch Bcc Send. Sends groups of BCCs in batches
bool
batch_bcc_send
()
Set BCC
void
bcc
(string $bcc, [string $limit = ''])
-
string
$bcc
-
string
$limit
Set CC
void
cc
(string $cc)
Clean Extended Email Address: Joe Smith <joe@smith.com>
string
clean_email
(string $email)
Initialize the Email Data
void
clear
([ $clear_attachments = FALSE])
Filter emails on DEV environment
string
filter_emails
(string $emails_to_filter, [ $filter_type = "email"])
-
string
$emails_to_filter: || array
-
$filter_type
Set FROM
void
from
(string $from, [string $name = ''])
-
string
$from
-
string
$name
Initialize preferences
void
initialize
([array $config = array()])
Set Body
void
message
(string $body)
Get Debug Message
string
print_debugger
()
Set Reply-to
void
reply_to
(string $replyto, [string $name = ''])
-
string
$replyto
-
string
$name
Set Multipart Value
void
set_alt_message
([string $str = ''])
Set CRLF
void
set_crlf
([string $crlf = "\n"])
Set Mailtype
void
set_mailtype
([string $type = 'text'])
Set Newline Character
void
set_newline
([string $newline = "\n"])
Set Priority
void
set_priority
([integer $n = 3])
Set Protocol
void
set_protocol
([string $protocol = 'mail'])
Set Wordwrap
void
set_wordwrap
([string $wordwrap = TRUE])
Set Email Subject
void
subject
(string $subject)
Set Recipients
void
to
(string $to)
Validate Email Address
bool
validate_email
(string $email)
Email Validation
bool
valid_email
(string $address)
Word Wrap
string
word_wrap
(string $str, [integer $charlim = ''])
-
string
$str
-
integer
$charlim
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
str
_prep_q_encoding
(str $str, [bool $from = FALSE])
-
str
$str
-
bool
$from: // set to TRUE for processing From: headers