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
ContentType Property
Holds Content-Type header.
Type
StringSyntax
- Basic
object.ContentType [= value]
The ContentType(object,value) syntax has these parts:
The ContentType(object,value) syntax has these parts:
object | An expression evaluating to an object of type SmtpMsg |
value | A String value. |
Remarks
ContentType property will internally scan headers and search for 'Content-Type' header, and return its information to you.When you set this property, it will overwrite 'Content-Type' header.
Content-Type usually specifies type of the message or message part. Most common it is set to 'text/plain', but can have also 'text/html' when message contains HTML parts, and for attachments it can be 'application/octet-stream', 'application/zip' etc..