时间:2021-07-01 10:21:17 帮助过:33人阅读
attach() 方法允许你的发邮件时带上附件,下面是演示代码
代码如下:$this->load->library('email');
$this->email->from('w3@w3mentor.com', 'W3M');
$this->email->subject('Email Test with attachment');
$this->email->message('Testing the email class IN CODEIGNITER with attachment.');
$this->email->attach('/path/to/attachment1.jpg');
$this->email->send();
希望本文所述对大家基于Codeigniter的php程序设计有所帮助。