Making use of MIMEType enum in MailUtils.