Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodSmtp
- Methods
- Properties
- Authentication
- Blocking
- Certificate
- CharSet
- DNSHostname
- Hostname
- LastError
- LastErrorText
- Login
- MailFrom
- MailTo
- Message
- MyHostname
- MyIP
- Notification
- Password
- Port
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RequestReceipt
- RetryCount
- RetryWait
- Security
- State
- StateText
- Tag
- Timeout
- Transcript
- UseIPv6
- Version
- Events
- IwodSmtpClientNotify
- SmtpEncoder
- SmtpHdr
- SmtpHdrs
- SmtpMsg
- SmtpMsgs
- wodSmtp
- How to get support?
- Technical information
- Fast notifications interface
- Error list
EncodeHeader Method
Encodes message header.
Type
StringSyntax
- Basic
object.EncodeHeader (Encoding, CharSet, Text)
The EncodeHeader(object,Encoding,CharSet,Text) syntax has these parts:
The EncodeHeader(object,Encoding,CharSet,Text) syntax has these parts:
object | An expression evaluating to an object of type SmtpMsg |
Encoding | Required. Specifies preferred encoding type (base64 is default). |
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 の 技術は、全世界にわたり プリプレ ")