Variable CSPMimePart::Encoding

Description:
Contains the encoding type for the data of the MIME part when it gets rendered.

Prototype
unsigned long Encoding;

Remarks:
The available encoding types are:

CSPMimePart::ENC_BINARY
CSPMimePart::ENC_BASE64
CSPMimePart::ENC_QUOTED_PRINTABLE
CSPMimePart::ENC_7BIT
CSPMimePart::ENC_8BIT

Note that ENC_BINARY and ENC_8BIT are not supported by all SMTP servers.

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
CSPMimePart | Other support classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd