Tuesday, 27 October 2015

FUNCTION SEND ATTACHMENT FILE THROUGH EMEL ( DLM CODEIGNITER )

NOTEPut the file path/name in the first parameter. / 
Use a file path, not a URL. For multiple attachments use the function multiple times. For example:

$this->email->attach('/path/to/pic1.jpg');
$this->email->attach('/path/to/pic2.jpg');
$this->email->attach('/path/to/pic3.jpg');

$this->email->send();

0 comments:

Post a Comment