Home  >  Article  >  Backend Development  >  Codeigniter发送邮件的方法_PHP教程

Codeigniter发送邮件的方法_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:02:20962browse

Codeigniter发送邮件的方法

 这篇文章主要介绍了Codeigniter发送邮件的方法,涉及Codeigniter实现邮件发送的技巧,非常具有实用价值,需要的朋友可以参考下

 

 

本文实例讲述了Codeigniter发送邮件的方法。分享给大家供大家参考。具体分析如下:

Codeigniter的邮件发送支持一下特性:

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

具体代码如下:

?

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

希望本文所述对大家基于Codeigniter的php程序设计有所帮助。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/970753.htmlTechArticleCodeigniter发送邮件的方法 这篇文章主要介绍了Codeigniter发送邮件的方法,涉及Codeigniter实现邮件发送的技巧,非常具有实用价值,需要的朋友可以...
Statement:
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