Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×