use mimemessage method gettype() to extract content-type