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
|
|