New method to send emails with attachment.