Fixed up my code to send files with attachments.