Nav 2009 SP1 sending Outlook2010 Custom Mail

DeanVersfeldDeanVersfeld Member Posts: 2
Hi Guys,

We have a client on Nav2009 SP1 that wants to send emails with certain functionality. For a bit of background on them, they used to use LotusNotes and have since rolled out Office 2010 and now wish to use this as the default mail option. We originally used SMTP out of Nav and this worked well, until they realized that this did not save the sent emails in "Sent" items in outlook which was a problem. We tried the outlook synchronization side of things, but had issues with code unit 397 (mail) not logging in and on further investigation found out that Outlook2010 and Nav2009 dont work so well together.

So, what we have been trying to do is create an OCX or DLL that we can use to send the mail using the following below, but we are having issue's with DLL's missing and versions of .net framework on the server on the client side. We are trying to create the dll with late binding but this needs to install the .net framework on 80+ users machines, something we kinda want to stay away from.


dynamic oApp; -- Framework 4 specific
dynamic oMsg; -- Framework 4 specific

oApp = Activator.CreateInstance(Type.GetTypeFromProgID("Outlook.Application"));

oMsg = oApp.CreateItem(0);

oMsg.To = textBox1.Text.ToString();
oMsg.Subject = "This is the subject";
oMsg.Body = "This is the body";
oMsg.Send();

Have any of you done this previously, is there an easier way? Im confused as to why there cant be an easier way to send mails out of Nav2009 using Outlook 2010 and have those mails appear in sent items. Our client has 2 terminal servers that users log into, one with .Net framework 3.5 and the other with framework 4.

Thanks
Dean
Sign In or Register to comment.