In my application, I need to send emails. I can' t use smtp and there is no option installing MS Outlook in normal ways. I tried;
private Microsoft.Office.Interop.Outlook.Application oApp;
private Microsoft.Office.Interop.Outlook._NameSpace oNameSpace;
private Microsoft.Office.Interop.Outlook.MAPIFolder oOutboxFolder;
oApp = new Outlook.Application();
oNameSpace = oApp.GetNamespace("MAPI");
oNameSpace.Logon(null, null, true, true);
Outlook._MailItem oMailItem = (Outlook._MailItem)oApp.
CreateItem(Outlook.OlItemType.olMailItem);
oMailItem.To = toValue;
oMailItem.Subject = subjectValue;
oMailItem.Body = bodyValue;
oMailItem.Send();
This code works well if Office 2010 is installed and running on machine. But I need to find out what dlls are being referenced. Is it possible to get only required dlls from Outlook and send email using them?
Thanks in advance