Send mail using default webclient in ASP.NET using MAPI in C# web application
问题 I am using MAPI for opening default web mail client in my C# web application. Now it is opening as dialog box first then outlook window. I want to open direct default mail client window using MAPI. But when I am deploying on IIS then MAPI is not calling Mail Dialog box. Is there simple way of calling web mail client using MAPI with attachment? 回答1: Don't use the MAPI. Use System.Net.Mail: http://www.systemnetmail.com/faq/3.4.1.aspx static void AttachmentFromFile() { //create the mail message