Send email with attachment

Use this function to send attachment variable $filesToAttach is define as an array

 

Read more