Home > Backend Development > PHP Tutorial > How to send emails with Codeigniter_PHP tutorial

How to send emails with Codeigniter_PHP tutorial

WBOY
Release: 2016-07-13 10:02:20
Original
1023 people have browsed it

How to send emails with Codeigniter

This article mainly introduces the method of sending emails with Codeigniter. It involves the techniques of sending emails with Codeigniter. It is of great practical value and friends in need can refer to it. Next

The example in this article describes how Codeigniter sends 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:

?

1

2

3

4

5

$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();

1 2

3

4 5

$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.
http://www.bkjia.com/PHPjc/970753.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/970753.htmlTechArticleCodeigniter's method of sending emails. This article mainly introduces the method of Codeigniter's sending emails, and involves Codeigniter's techniques for sending emails. , very practical value, friends in need can...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template