Tag: email client

查找默认电子邮件客户

使用C#,如何确定将哪个程序注册为默认电子邮件客户端? 我不需要启动应用程序,我只是想知道它是什么。

用附件撰写Outlook中的电子邮件

在我的应用程序中,我有一个要求,即如果用户点击发票编号,生成的发票声明将附加到outlook中的撰写电子邮件中。 使用下面的代码我能够发送自动电子邮件,但我需要撰写并打开Outlook窗口供用户查看和编辑内容。 不要寄。 请帮助。 public void pdfStatement(string InvoiceNumber) { InvoiceNumber = InvoiceNumber.Trim(); string mailServer = “server”; string fileName = InvoiceNumber; string filePath = Server.MapPath(“~/Content/reports/”); string messageBody = “Its an automated test email, please ignore if you receive this.”; CreateMessageWithAttachment(mailServer, filePath, fileName, messageBody); } public void CreateMessageWithAttachment(string mailServer, string filePath, string fileName, string messageBody) { MailMessage […]