Re: Lost filename for attachment

Giganews Newsgroups
Subject: Re: Lost filename for attachment
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Fri, 8 Apr 2005

"Richard Gillingham" <richa…@richardgillingham.com> wrote in message
news:0543E1644DC6E240richa…@richardgillingham.com...

> Env.  Indy10 W32 D2005
>
> I am adding an attachment to a simple text email using
> TIdAttachment.Create(IdMsgSend.MessageParts, fileName);

In Indy 10, you cannot instantiate TIdAttachment directly.  It is an
abstract base class.  You need to use TIdAttachmentFile instead.

> I can send this successfully without problem.  However the attachment
> filename is blank in Outlook 2000.  In Outlook 2003 it is fine, in webmail
> clients it is fine and also I know this used to work in Outlook 2000 using
> Indy 9.

Then I suggest you show the actual message data so people can see what the
headers actually look like.

Gambit

Replies

None

In response to

Lost filename for attachment posted by Richard Gillingham on Fri, 8 Apr 2005