![]() ![]() ![]() MsOutlook.Attachment oAttach = (file) Įlse if (sendType = MailSendType.ShowModal)Įlse if (sendType = MailSendType. If Outlook is not sending emails, use the Outlook PST Repair Tool that offers smart features for PST file data recovery. But the scanpst.exe utility has some limitations, and it does not work in all cases. MsOutlook.MailItem mail = (MsOutlook.MailItem)outlookApp.CreateItem() To repair Outlook 20 PST files manually, the scanpst.exe utility is provided to repair corruption of PST files. MsOutlook.Application outlookApp = new MsOutlook.Application() Public bool SendMailWithOutlook(string subject, string htmlBody, string recipients, string filePaths, MailSendType sendType) String attachFiles = new string "This is an example.", attachFiles, MailSendType.SendDirect) To do this, firstly go to your solution explorer and click on add a reference. To send an email using outlook program, we need to add a reference to the dynamic link library for Outlook which is called .dll. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |