Re: JPeg attachment on a plain text email

Giganews Newsgroups
Subject: Re: JPeg attachment on a plain text email
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Tue, 13 Apr 2004

"Roger Webb" <rwebb> wrote in message news:AD3BB4534D99E240rwebb...

> However,  after the TIdAttachment.Create(...) line,
> MailMessage.MessageParts.AttachmentCount = 0.

As it should be.  The AttachmentCount (and TextPartCount and
RelatedPartCount) property is only updated when the
MessageParts.CountParts() method is called, which is not done until the
message is actually being sent.  That has no bearing on the TIdMessage's
ability to send the attachment, though.  Something else has to be going on.

Gambit

Replies

In response to

JPeg attachment on a plain text email posted by Roger Webb on Tue, 13 Apr 2004