Home > Article > Backend Development > How to send emails with Codeigniter, send emails with codeigniter_PHP tutorial
The example in this article describes the method of Codeigniter's sending emails. Share it with everyone for your reference. The specific analysis is as follows:
Codeigniter’s email sending supports the following features:
Multiple Protocols: Mail, Sendmail, and SMTP
Multiple recipients
CC and BCCs
HTML or Plaintext email
Attachments
Word wrapping
Priorities
BCC Batch Mode, enabling large email lists to be broken into small BCC batches.
Email Debugging tools
The specific code is as follows:
$this->load->library('email'); $this->email->from('w3@w3mentor.com', 'W3M'); $this->email->subject('Email Test'); $this->email->message('Testing the email class IN CODEIGNITER.'); $this->email->send();
I hope this article will be helpful to everyone’s PHP programming based on Codeigniter.