Add starttls and attachment support to mail.