CodeIgniter Forums
Can I add attachments to an email sent from CodeIgniter? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Can I add attachments to an email sent from CodeIgniter? (/showthread.php?tid=301)



Can I add attachments to an email sent from CodeIgniter? - alexandervj - 11-19-2014

I'm trying to make an application that can send an email with attachments (see attached image). Is there a way I can do this with CodeIgniter? Do you have any suggestions or resources? Thanks


RE: Can I add attachments to an email sent from CodeIgniter? - Rufnex - 11-19-2014

Yes, its possible out of the box:

PHP Code:
$this->email->attach('/path/to/photo1.jpg'); 

Look at the documentation: http://www.codeigniter.com/userguide3/libraries/email.html?highlight=attachement


RE: Can I add attachments to an email sent from CodeIgniter? - alexandervj - 11-19-2014

Thanks!