php 使用Codeigniter发送邮件功能实例

前端之家收集整理的这篇文章主要介绍了php 使用Codeigniter发送邮件功能实例前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
PHP Codeigniter发送邮件感兴趣的小伙伴,下面一起跟随编程之家 jb51.cc的小编两巴掌来看看吧!
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

/**
 * PHP Codeigniter发送邮件
 *
 * @param 
 * @arrange 512-笔记网: jb51.cc
 **/
$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();
/***   来自编程之家 jb51.cc(jb51.cc)   ***/

猜你在找的PHP相关文章