|
Summary
External or partial MIME message.
Description
The MessageType property must be set for a partial or external MIME message. The
following values can be assigned to the MessageType property.
| Value |
Meaning |
| MESSAGE_NONE |
None. |
| MESSAGE_EXTERNAL |
External message. |
| MESSAGE_PARTIAL |
Partial message. |
A partial message is a MIME message whose ContentType is "message" and
Subtype is "partial". This is generally used to send very large files in many
parts. The various parts will be reassembled on the receiving end. If the application is
creating a partial message, then the MessageType must be set to MESSAGE_PARTIAL. The
OnPartial event will be fired to obtain the information for the partial message. The
OnPartial event will be fired only if the MessageType property is set. A partial message cannot
be a body part of a multipart message.
An external message is a MIME message whose ContentType is "message" and
Subtype is "external-body". This is generally used to reference an external data
source. The actual data is not included in the body part. If the application is creating
an external message, then the MessageType must be set to MESSAGE_EXTERNAL. The OnExternal
event will be fired to obtain the information for the external message. The OnExternal
event will be fired only if the MessageType property is set.
If the external message is part of a multipart message, then MessageType property must
be set to MESSAGE_EXTERNAL inside the OnSetHeader event (or deprecated OnHeader event) for
that attachment and then reset to MESSAGE_NONE immediately. These events will occur during
the create message process, initiated by calling the CreateMessage method (or the
deprecated Create or CreateX method, or setting the corresponding Action property).
This property is set by the OnRecvHeader in the message extraction process initiated by
calling the ExtractMessageEnd method (and it is also set by the deprecated OnExtract event
that occurs after calling the Extract or ExtractX method).
The External and Partial methods can also be used to set the message type. Please check
the reference pages of these methods for more detailed information on their usage.
This property can be changed at design time and at run time before creating a message.
The default value for this property is MESSAGE_NONE.
Example
Private Sub MIME_OnSetHeader(Info As String, Length As Integer, Status As Integer)
Mime.ContentType = "message"
Mime.SubType = "partial"
Mime.MessageType = MESSAGE_PARTIAL
Mime.Encoding = ""
.
.
End Sub
|