c# - 在 C# 中从 Outlook 发送电子邮件

标签 c# outlook

我正在按照本指南进行操作,但还没有走很远

http://www.c-sharpcorner.com/UploadFile/casperboekhoudt/SendingEmailsThroughOutlook12052005000124AM/SendingEmailsThroughOutlook.aspx

我卡在这里了

Now that we have the MAPI namespace, we can log on using using:

.Logon(object Profile, object Password, object ShowDialog, object NewSession)

Profile: This is a string value that indicates what MAPI profile to use for logging on. Set this to null if using the currently logged on user, or set to an empty string ("") if you wish to use the default Outlook Profile.

我想在我的程序中做的就是获取我在变量中已有的电子邮件地址,并打开一个新的 Outlook 电子邮件窗口,该电子邮件地址位于太部分。

非常感谢。

最佳答案

CodeProject 上的这篇文档展示了如何打开默认邮件客户端。

http://www.codeproject.com/KB/dotnet/Default_mail_client.aspx

关于c# - 在 C# 中从 Outlook 发送电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5884094/

相关文章:

r - [R] :RDCOMClient and outlook : how to send to multiple recipients or cc someone?

python - 使用python在outlook 2010中创建文件夹

c# - 如何从 mvc 下拉列表中获取选定值作为 C# 中的操作链接 ID

c# - Microsoft 内部 PriorityQueue<T> 中的错误?

c# - 在 Window.SizeToContent = SizeToContent.WidthAndHeight 的情况下,窗口内容的布局不正确

c# - 使用交换 Web 服务来获取日历项所需的参与者? C#

python - Python 中的 Outlook PST 文件解析

c# - 动态生成 Linq/Lambda Where 子句

c# - XACML 和 WCF 示例

outlook - 通过电子邮件发送指向 Outlook 中新创建的 Dynamics CRM 帐户的直接链接