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/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Can I add attachments to an email sent from CodeIgniter? (/thread-301.html)



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!