Added support for sending emails with file attachments