adds javax.mail.Message class as return message instead of raw string.