使用biztalk pop3适配器从邮件下载附件时出现问题 [英] Problem with downloading attachments from mail using biztalk pop3 adapter

查看:112
本文介绍了使用biztalk pop3适配器从邮件下载附件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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





我尝试过:



我尝试使用content-type =application / pdf,它与具有相同内容类型的邮件一起正常工作。

但是我收到邮件中没有这种内容类型的邮件,并且抛出了MIME错误。

所以,我在POP3配置中尝试没有任何内容类型,但后来邮件正文部分被选为BizTalk消息部分,而不是pdf附件。



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.

推荐答案





目前我是在POP3适配器上工作。我使用excel文件附件将附件下载到文件夹。



步骤1:在业务流程中制作包含正文和附件的Multipart消息

步骤2:将接收位置管道设为passthro

步骤3:将目标消息构造为Multipartmessage.Attachment。

步骤4:Sendport将具有文件扩展名.pdf



试试这个选项,它应该有效。
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.


这篇关于使用biztalk pop3适配器从邮件下载附件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆