小编Rix*_*azi的帖子

CodeIgniter 发送奇怪的电子邮件

我有一个可以传递参数以轻松发送电子邮件的功能。

就是这个 :

function __construct() {
        $this -> CI = get_instance();
        $this -> CI -> load -> library('email');
    }

    public function send_one_email($single_email, $single_subject, $single_body, $single_attach) {
        $this -> CI -> email -> clear();
        $this -> CI -> email -> to($single_email);
        $this -> CI -> email -> from('**************');
        $this -> CI -> email -> subject($single_subject);
        $this -> CI -> email -> message($single_body);

        if ($single_attach) {
            $this -> CI -> email -> attachment($single_attach);
        }

        if ($this -> CI -> email -> send()) …
Run Code Online (Sandbox Code Playgroud)

php email codeigniter html-email

5
推荐指数
1
解决办法
8388
查看次数

标签 统计

codeigniter ×1

email ×1

html-email ×1

php ×1