fixed issue with email attachment mime type determination caused by namespace error