|
Description
The Charset property specifies the character set used for MIME messages. This property
is important for text messages. The message body must contain only characters from the
given character set.
The Charset property is optional. If used, it must be set in the OnSetHeader events,
after the CreateMessage method has been called (or set before setting the Action property
to the deprecated ACTION_CREATE value, calling the deprecated Create or CreateX method, or
in the deprecated OnHeader event).
The MIME ActiveX control will set this property during the message extraction process
immediately prior to firing the OnRecvHeader event. The OnRecvHeader event occurs in
response to calling the ExtractMessageEnd. (It is also set by the deprecated OnHeader
event, after the Extract or ExtractX method has been called.)
This property can be changed at design time and at run time . There is no default value
for this property.
Example
Private Sub MIME_OnSetHeader(Info As String, Length As Integer, Status As Integer)
Info = ""
Length = 0
If (InitialHeader) Then
MIME.Encoding = "text"
MIME.ContentType = "multipart"
MIME.Charset = "us-ascii"
MIME.Subtype = "mixed"
InitialHeader = False
Status = 1
Exit Sub
End If
.
.
.
End Sub
|