在.NET中发送电子邮件,电子邮件保存在用户的已发邮件中 [英] Send Email in .NET, with email saved in user's Sent Items
问题描述
有两个要求:
- 电子邮件将保存在Outlook中的已发送邮件文件夹中(他们唯一的电子邮件客户端)。
- PDF(生成的)附加到电子邮件。
我正在创建一个新的 MailMessage &通过 SmtpClient 发送,但我相信
这是可能吗?
编辑:这个是一个winforms应用程序,目的是向客户发送报告。
我想你需要做一个以下获得您想要的确切功能:
- Outlook Interop
- Exchange事件接收器
作为一个更容易的替代方案,BCC的用户(将获得到其收件箱)和配置Outlook规则将其移动到发送的项目?
I am attempting to send an email using VB.NET.
There are two requirements:
- The email be saved in their "Sent Items" folder in Outlook (their only email client).
- A PDF (generated on the fly) is attached to the email.
I am currently creating a new MailMessage & sending via a SmtpClient, but I believe that this sends from the server, and not from the client.
Is this possible?
EDIT: This is a winforms application, the purpose is to send reports to clients.
I think you'd need to do 1 of the following to get the exact functionality you want:
- Outlook Interop
- Exchange event sink
As a much easier alternative, how about BCC the user (which will get to their Inbox) and configure an Outlook rule to move it to sent items?
这篇关于在.NET中发送电子邮件,电子邮件保存在用户的已发邮件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!