Description
-
Encodes message header.
Return Type
-
A String value.
Syntax
-
object.EncodeHeader Encoding, CharSet,
Text
The EncodeHeader Method syntax has these parts:
| object |
An expression
evaluating to an object of type SmtpMsg. |
| Encoding |
Required. Value from
AttachmentEncodingsEnum enumeration. |
| CharSet |
Required. A String value.
CharSet used in encoded header. |
| Text |
Required. A String value.
Header text that will be encoded. |
Remarks
-
EncodeHeader method is used to create encoded header when header
value contains nonprintable chars (or letters from non-English
systems, such as Japanese). Usually you will set CharSet to
"UTF-8", and choose
QuotedPrintable encoding. This is typical sample to set encoded
subject, but this method can be used for other headers too:
wodSmtp.Message.Subject =
wodSmtp.Message.EncodeHeader(encQUOTEDPRINTABLE, "UTF-8", "Hello
there の 技術は、全世界にわたり プリプレ ")
|