updated email send to handle attachements
changed the way of preparing attachments to fix attachments not sending in custom forms
replaced encode with smart_str applying to email body
remove unused imports