编程发布InfoPath表单(发送电子邮件) [英] Programmatically publishing an InfoPath form (sending as email)

查看:523
本文介绍了编程发布InfoPath表单(发送电子邮件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方式来编程方式发送InfoPath表单,相当于使用快速发布在InfoPath设计器按钮,但没有使用任何用户界面。

I'm looking for a way to send an InfoPath form programmatically, equivalent to using the quick publish button in the InfoPath designer, but without using any UI.

我无法找到一个方法来做到这一点,我一直在使用MailEnvelope尝试,但它带来了一个UI,我不希望出现这种情况。

I was not able to find a way to do this, I have tried using MailEnvelope , but it brings up an UI and I don't want that.

所以我结束通过SmtpClient了发送当前表单文件,但随后的形式显示为一个常规附件。

So I ended up sending the current form file through a SmtpClient, but then the form shows up as a regular attachment.

有谁知道是否有可能做到这一点的代码,还是不?

Does anyone know if there is a possibility to do that from code, or not?

先谢谢了。

推荐答案

您可以使用SmtpClient带附件的,但你必须设置MIME类型的电子邮件附件和头文件。相反,在这里复制完整的文章,请参阅以下链接:
http://blogs.msdn.com/b/hanuk/archive/2008/03/18/how-to-display-infopath -forms-直列与展望系列电子邮件message.aspx

You can use SmtpClient with attachments but you have to set the MIME types for the attachments and headers on the email. Instead of copying the full article here, see this link: http://blogs.msdn.com/b/hanuk/archive/2008/03/18/how-to-display-infopath-forms-inline-with-outlook-email-message.aspx

这篇关于编程发布InfoPath表单(发送电子邮件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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