Variable CSPMimePart::Filename

Description:
Contains the filename of an attachment.

Prototype
CSPString Filename;

Remarks:
You must assign a value to this member value, if you also set the member variable Disposition to CSPMimePart::DISP_ATTACHMENT or CSPMimePart::DISP_INLINE.

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 Disposition, Data, ContentType, ContentId, Encoding
CSPMimePart | Other support classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd