コーディングからPDFファイルを作成しましたが、そのPDFファイルをメールに添付して送信したいのですが、誰か助けてもらえますか?
前もって感謝します。
codeigniterアタッチ機能を使用します。
$this->email->attach()
添付ファイルを送信できます。ファイルのパス/名前を最初のパラメーターに入れます。
例えば..
$this->email->attach('/path/to/yourfile.pdf');
$this->email->send();
ユーザーガイドを確認して ください。http://ellislab.com/codeigniter/user_guide/libraries/email.html
あなたはここでそれについて読むことができます:http://ellislab.com/codeigniter/user_guide/libraries/email.html
$this->email->attach('/path/to/photo1.jpg');
$this->email->attach('/path/to/photo2.jpg');
$this->email->attach('/path/to/photo3.jpg');
$this->email->send();
自分のサーバーからのみファイルを添付できることに注意してください。