Added attachment option to the email model
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