Re: Attachment ContentType

Giganews Newsgroups
Subject: Re: Attachment ContentType
Posted by:  Robert Tulloch (tulta…@attglobal.net)
Date: Tue, 15 Mar 2005

Robert Tulloch wrote:

> Hi:
>
>  When I attach a pdf and an rtf using
>
> TIdAttachment.Create(IdMsgSend.MessageParts, OpenDialog.FileName);
>
  Further, where is the ContentType generated from?

TIdAttachment(IdMsgSend.MessageParts.Items[idx]).ContentType

I note that text/pdf is not listed below. Is that why the substitution
noted in the previous post?

Thanks.

property ContentType: string;

Description

ContentType is a String property that specifies the MIME media type for
the message. The purpose of ContentType is to describe the data
contained in the body to allow a user agent to determine how to present
the data. ContentType contains information about the media type.
subtype, and auxillary information in attribute=value notation. Some
common values for the media type and subtype include:

text/plain
    text/html
    text/xml
    text/enhanced
    image/jpeg
    image/gif
    audio/basic
    audio/au
    video/mpeg
    application/octet-stream
    application/postscript
    application/ms-word
    application/ms-excel
    application/rtf
    multipart/mixed
    multipart/alternative
    multipart/parallel

multipart/related
    message/rfc822
    message/external-body

Replies

In response to

Attachment ContentType posted by Robert Tulloch on Tue, 15 Mar 2005