Rename Attachment parameter $type to $mimeType for bigger verbosity.