Variable CSPMimePart::Disposition

Description:
Contains the disposition of the part. The available disposition types are CSPMimePart::DISP_ATTACHMENT and CSPMimePart::DISP_INLINE.

Prototype
unsigned long Disposition;

Remarks:
You can leave this member variable empty.

If you set this member variable, you must also set the member variable Filename

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;
Part.Disposition = CSPMimePart::DISP_ATTACHMENT;
Part.Filename = "myimage.jpeg";
Mime.Add( Part );
Mime.Render();

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

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd