Reputation: 69
I've never posted so I'm a little nervous, but I've been making a program to compile and send an email after gathering the computer name and IP. I've got an understanding how to do do that just fine, however, I'm trying to use MS Outlook to send the mail. I've used the following information on how to format the emails to send out (hope it's not bad form to link to other info sites):
http://www.codeproject.com/Tips/165548/C-Code-snippet-to-send-an-Email-with-attachment-fr
That seems very strait forward, but I can't seem to locate the library for Microsoft.Office.Interop.Outlook.dll in the .NET Add Reference window. I've located, downloaded and installed the Office 2010 PIA, but that doesn't seem to auto populate the dll files into the reference window. Where should I look on my system for these files? I don't remember defining a location for the PIA Installation.
Upvotes: 1
Views: 449
Reputation: 3855
It's not in the .NET References, it's in the COM References. Look for the Microsoft Outlook Object library and select it there.
Also make sure that if you are distributing the application to other machines that you copy the dll from your bin\release
folder along with your executable.
Upvotes: 0