在.NET中发送电子邮件,电子邮件保存在用户的已发邮件中 [英] Send Email in .NET, with email saved in user's Sent Items

查看:139
本文介绍了在.NET中发送电子邮件,电子邮件保存在用户的已发邮件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有两个要求:


  1. 电子邮件将保存在Outlook中的已发送邮件文件夹中(他们唯一的电子邮件客户端)。

  2. PDF(生成的)附加到电子邮件。

我正在创建一个新的 MailMessage &通过 SmtpClient 发送,但我相信



这是可能吗?



编辑:这个是一个winforms应用程序,目的是向客户发送报告。

解决方案

我想你需要做一个以下获得您想要的确切功能:




  • Outlook Interop

  • Exchange事件接收器



作为一个更容易的替代方案,BCC的用户(将获得到其收件箱)和配置Outlook规则将其移动到发送的项目?


I am attempting to send an email using VB.NET.

There are two requirements:

  1. The email be saved in their "Sent Items" folder in Outlook (their only email client).
  2. 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屋!

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