Jump to content
Sign in to follow this  
isola

TIdMessage. IdMessage.MessageParts.Count = 0

Recommended Posts

Delphi 11, Indy: TIdSMTP, TIdPOP3

There are two apps : mail sender and mail receiver.

 

app sender (single attachment): 

for i := 0 to High(FMailInfo.MailPoint.mpAttachments) do
   TIdAttachmentFile.Create(IdMessage.MessageParts, FMailInfo.MailPoint.mpAttachments[i]);

IdMessage.ContentType := 'multipart/mixed';

app receiver:

IdMessage.MessageParts.Count is 0

raw message headers on server side:
Content-Type: multipart/mixed; charset=UTF-8; boundary= ...........
MIME-Version: 1.0

 

I see sent message in browser and can download the attachment.

 

Can somebody explain what is wrong in the code? Why attachment is inaccessible for my receiver app? Content type?

 

Thanks.

 

 

 

Share this post


Link to post

Sorry, it is my carelessness.(

I used IdPOP3.RetrieveHeader() instead IdPOP3.Retrieve()

Please, close the topic

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×