|
Summary
Encoded header field.
Description
The EncodedField property contains the encoded field after a successful call to
EncodeHdrField.
When creating a message the header fields of the message and any attachments are set in
the OnSetHeader event. They are set by assigning values to the MIME ActiveX properties
that correspond to the message properties. The Filename and FileDesc header fields may be
encoded by setting these properties to encoded values. To encode these properties the
EncodeHdrField method must be called and the data to be encoded must be set in the
OnEncodeField event. If the method is successful then the EncodedField property will
contain the encoded field. The Filename or FileDesc properties can then be set to this
value (ie Mime.FileDesc = Mime.EncodedField).
At this time the Filename and the FileDesc properties are the only header fields that
may be encoded.
This property is only valid in the after the EncodeHdrField method has been
successfully called. There is no default value for this property.
Example
Private Sub MIME_OnSetHeader(Info As String, Length As Integer, Status As Integer)
Result = MIME.EncodeHdrField ()
' File description set in OnEncodeField event
If Result
MIME.FileDesc = MIME.EncodedField
End If
.
.
End Sub
Private Sub MIME_OnEncodeField(Value As String, Length As Integer, Charset As Integer,
Encoding As Integer)
'Encode the file description
If (initial)
Value = "This file contains:"
Charset = "us-ascii"
Encoding = ADDR_NO_ENCODING
initial = False
Else
Value = "lots of confidential information."
Charset = "us-ascii"
Encoding = ADDR_BASE64_ENCODING
End If
End Sub
|