PDF附件添加到BizTalk电子邮件服务 [英] Add PDF attachment to BizTalk email service

查看:204
本文介绍了PDF附件添加到BizTalk电子邮件服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经进入了利用Biztalk的2013年处理像发送电子邮件任务的ASP.NET MVC网站的所有权。我完全新的到BizTalk所以在这个岗位原谅明显的错误。

I have come into ownership of a ASP.NET MVC site that utilizes Biztalk 2013 to handle tasks like sending emails. I am completely new to biztalk so forgive obvious mistakes in this post.

结果
快速浏览

该服务是通过应用程序调用,然后编排在SQL数据库调用存储过程来填充一些值的邮件(包括HTML的电子邮件),然后发送电子邮件了。
结果

The service is called through the application and then the orchestration calls a stored procedure in a sql db to populate some of values for the email (including html for the email) and then sends the email out.

我现在想添加一个PDF附件的电子邮件。

作为测试,我添加了一个PDF文件到服务器,然后我试图加入 ActualEmailMsg(SMTP.Attachments)=C:\\\\ \\\\ PDF文件的test.pdf
ActualEmailMsg(SMTP.MessagePartsAttachments)= 2;
来作为<建议的消息分配前pression形状href=\"http://stackoverflow.com/questions/2187750/send-html-email-in-biztalk-with-multiple-pdf-attachments-with-smtp-adapter\">this帖子无济于事。 (我也试图与物理路径只有1个\\,如C:\\\\ PDF文件\\的test.pdf,并没有奏效的)
结果

As a test, I added a pdf file to the server and then I have tried adding ActualEmailMsg(SMTP.Attachments) = "C:\\PDFs\\test.pdf"; ActualEmailMsg(SMTP.MessagePartsAttachments) = 2; to the message assignment expression shape as suggested in this post to no avail. (I also tried the physical path with only 1 "\" like "C:\\PDFs\test.pdf" and that didn't work)

我已经排除了缺乏从服务帐户的PDF文件夹权限的可能性。电子邮件发送正确,但没有附件是present。我得到了code或服务器,因此在这一点上我是什么这可能是一个亏损的事件查看器中没有错误。

I have ruled out the possibility of a lack of permissions from the service account to the PDF folder. The email sends correctly but no attachment is present. I am getting no errors in the code or in the event viewer on the server so at this point I am at a loss for what it might be.

推荐答案

在谷歌上搜索很多的我发现的的问题涉及到发送管道这个线程让我在正确的轨道上。

After lots of googling I found the issue was related to the send pipeline. This thread got me on the right track.

在应用程序的的BizTalk管理控制台的发送端口部分,发送管道使用一个自定义管道相信是由previous所有者进行。 我改成了直通发送类型的下拉和它现在的工作。

In the send ports section of the BizTalk Admin Console of the app, the send pipeline was using a custom pipeline I believe was made by the previous owner. I changed it to the 'Pass Thru Transmit' type in the dropdown and it is now working.

这篇关于PDF附件添加到BizTalk电子邮件服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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