$fromEmail
$fromEmail : string
CodeIgniter Email Class
Permits email to be sent using Mail, Sendmail, or SMTP.
$CRLF : string
CRLF character sequence
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.
setLogger(\Psr\Log\LoggerInterface $logger)
Sets a logger.
| \Psr\Log\LoggerInterface | $logger |
initialize(array|\Config\Email $config) : \CodeIgniter\Email\Email
Initialize preferences
| array|\Config\Email | $config |
clear(boolean $clearAttachments = false) : \CodeIgniter\Email\Email
Initialize the Email Data
| boolean | $clearAttachments |
setFrom(string $from, string $name = '', string|null $returnPath = null) : \CodeIgniter\Email\Email
Set FROM
| string | $from | |
| string | $name | |
| string|null | $returnPath | Return-Path |
setReplyTo(string $replyto, string $name = '') : \CodeIgniter\Email\Email
Set Reply-to
| string | $replyto | |
| string | $name |
setTo(string $to) : \CodeIgniter\Email\Email
Set Recipients
| string | $to |
setCC(string $cc) : \CodeIgniter\Email\Email
Set CC
| string | $cc |
setBCC(string $bcc, string $limit = '') : \CodeIgniter\Email\Email
Set BCC
| string | $bcc | |
| string | $limit |
setSubject(string $subject) : \CodeIgniter\Email\Email
Set Email Subject
| string | $subject |
setMessage(string $body) : \CodeIgniter\Email\Email
Set Body
| string | $body |
attach(string $file, string $disposition = '', string|null $newname = null, string $mime = '') : \CodeIgniter\Email\Email
Assign file attachments
| string | $file | Can be local path, URL or buffered content |
| string | $disposition | 'attachment' |
| string|null | $newname | |
| string | $mime |
setHeader(string $header, string $value) : \CodeIgniter\Email\Email
Add a Header Item
| string | $header | |
| string | $value |
setAltMessage(string $str) : \CodeIgniter\Email\Email
Set Multipart Value
| string | $str |
setMailType(string $type = 'text') : \CodeIgniter\Email\Email
Set Mailtype
| string | $type |
setWordWrap(boolean $wordWrap = true) : \CodeIgniter\Email\Email
Set Wordwrap
| boolean | $wordWrap |
setProtocol(string $protocol = 'mail') : \CodeIgniter\Email\Email
Set Protocol
| string | $protocol |
setPriority(integer $n = 3) : \CodeIgniter\Email\Email
Set Priority
| integer | $n |
setNewline(string $newline = "\n") : \CodeIgniter\Email\Email
Set Newline Character
| string | $newline |
setCRLF(string $CRLF = "\n") : \CodeIgniter\Email\Email
Set CRLF
| string | $CRLF |
prepQuotedPrintable(string $str) : string
Prep Quoted Printable
Prepares string for Quoted-Printable Content-Transfer-Encoding Refer to RFC 2045 http://www.ietf.org/rfc/rfc2045.txt
| string | $str |