successfully sending emails with attachments