返回顶部

收藏

php Codeigniter发送带附件的邮件

更多
$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,发送邮件,附件

收藏

0人收藏

支持

0

反对

0

发表评论