Back to product page

ContentType Property


Holds Content-Type header.

Type

String

Syntax

  • Basic
object.ContentType [= value]
The ContentType(object,value) syntax has these parts:
objectAn expression evaluating to an object of type SmtpMsg
valueA 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..

Platforms

Windows