To create a message, call the CreateMessage method with the parameters set as described below. The Destination parameter must be set to the destination file name for the created message, or an empty string. The OnSetAddrField event is fired repeatedly to get the address fields. The To and From address fields are compulsary and must be set using this event. The UseVariant property is used to specify whether the data should be sent as binary data or not, if UseVariant is True then the data will be treated as binary data.
Plain messages can be plain text or uuencoded.
MIME messages can be base64 encoded, quoted-printable encoded, binhex encoded or plain text. The encoding is done by the MIME ActiveX control and the Encoding property should be set in the OnSetHeader event, the Charset, FileDesc, FileName and FileSize properties are optional. The FileDesc and FileName values may be encoded, to encode these value use the EncodeHdrField method, and to decode them use the DecodeHdrField method. For MIME messages the ContentType, and Subtype properties have to be set in the OnSetHeader event. The MessageType property must be set for partial or external MIME messages.