somewhat working mail composer for generating multipart messages