Outlook.AppointmentItem tempApp = (Outlook.AppointmentItem)olook.CreateItem(Outlook.OlItemType.olAppointmentItem); Outlook.Application objApp = new Outlook.Application(); Outlook.MailItem mail = null; mail = (Outlook.MailItem)objApp.CreateItem(Outlook.OlItemType.olMailItem); mail.Attachments.Add((object)@"" + FilePath + "", Outlook.OlAttachmentType.olEmbeddeditem, 1, (object)"Attachment"); mail.Display();
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)