[CodeIgniter] 寄信夾帶附件

記錄一下要使用 CodeIgniter 寄信時夾帶附件的方法。

$picname="檔案的url";
$this->email->attach($picname);
$cid = $this->email->attachment_cid($picname);

再像這樣嵌入信件就好。


參考資料

留言