Sure you can do that. Please note Mail.dll is smart enough to recognize common file extensions, so if you are creating email attachment from file on disk, in most cases, contant-type will be set to correct value. You can also use overloaded ConentType constructor, and use either defined types and subtypes or create new one: new ContentType(MimeType.Image, new MimeSubtype("png")).