Email Library - RoverWire/codeigniter-utilities GitHub Wiki

Official Codeginiter documentation email library reference

Note: Some of the methods listed here can be chained, so $this->email could be discarded if needed.

Initialize email

Trigger: cimailinit

Results: $this->email->initialize('')

Attach file to message

Trigger: cimailatt

Results: $this->email->attach('path/to/file')

Set BCC to email

Trigger: cimailbcc

Results: $this->email->bcc('')

Set CC to email

Trigger: cimailcc

Results: $this->email->cc('')

Clear attachments

Trigger: cimailclear

Results: $this->email->clear()

Set from to email

Trigger: cimailfrom

Results: $this->email->from('')

Set Message to email

Trigger: cimailmsg

Results: $this->email->message('')

Print debugger results

Trigger: cimailprint

Results: $this->email->print_debugger()

Print reply to

Trigger: cimailreply

Results: $this->email->reply_to()

Send email

Trigger: cimailsend

Results: $this->email->send()

Set alternative message

Trigger: cimailaltmsg

Results: $this->email->set_alt_message('')

Set email subject

Trigger: cimailsub

Results: $this->email->subject('mail subject')

Set email recipient

Trigger: cimailto

Results: $this->email->to('')

⚠️ **GitHub.com Fallback** ⚠️