Script functions reference > Script functions in alphabetical order > G > GetAttachmentContentType

GetAttachmentContentType
Syntax
GetAttachmentContentType(num_file);
num_file
The index of the attachment. Accepts the index of the attachment starting from 1 up to the number of attachments returned by GetConnectorValue("AttCount") or GetAttachmentCount().
Description
Returns the content-type of an attachment saved to disk via an EmailIN connector.
Returns
str
Example
$encoding = GetAttachmentContentType(1);
OpenText StreamServe 5.6 Updated: 2013-03-01