Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Hi All,

I have created a POP3 adapter in BizTalk to download pdf attachments from a mail Id. I used  application/pdf as Content type and configured the POP3 receive ports and its working fine in normal scenarios.

But, sometimes in the MIME message the content type application/pdf is missing even if there are pdf attachments in the mail.

So I am not able to download the attachments. When I remove the content-type (application/pdf) from POP3 port, BizTalk is taking the body part of the mail.

Help is much appreciated.

Thanks,

Haris


What I have tried:

I tried using content-type = "application/pdf", its working fine with mails having the same content-type.
But I'm getting mails without this content type from the mail, and MIME error is thrown.
So, I tried without any content type in the POP3 configuration, but then the mail body part is picked as BizTalk message part, not the pdf attachment.
Posted
Updated 24-Feb-16 3:27am
v2

1 solution

Hi,

Currently i am working on POP3 adapter. I am using excel file attachment to download the attachment to a file folder.

Step 1: Make the Multipart message which contain body and Attachment in the Orchestration
Step 2: Make the receive location pipeline as passthro
step 3: Construct the Destination message as the Multipartmessage.Attachment.
Step 4: Sendport will have the file extension of .pdf

Try this option, it should work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900