Skip to content

Added attachment option to the email model

Craig Smith requested to merge feature/Email_Attachment into master

What I did

  • added an parameter to the send_email method (last option) which will accept an array of files to attach to the email, they should be passed in full path format.

Implications

Missing read permisssion on files can cause emails to misform

Setup

How to test

Add full path of a file (eg: array(FCPATH . 'assets/modules/donations/DirectDebit.pdf') ) and send

Merge request reports