Variable CSPMimePart::ContentType

Description:
This string contains the Content Type of the MIME part, such as "text/plain", or "image/jpeg".

Prototype
CSPString ContentType;

Examples:
CSPMimePart Part;
CSPBuffer ImgData;
CSPFile File;
CSPMime Mime;
File.Open( "myimage.jpeg" );
File.Read( ImgData );

Part.ContentType = "image/jpeg";
Part.Data = ImgData;
Part.Encoding = CSPMimePart::ENC_BASE64;

Mime.Add( Part );
Mime.Render();

See also:
member variables Data, ContentId, Encoding, Disposition
CSPMimePart | Other support classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd