copy fields to a new outlook e-mail
Hi,
I am making a website with the following textfields:
-emailaddresses
-subject
-body
When I click a button the fields should be copied to a new Outlook e-mail.
This is because it's for a firm that does everything with outlook and they request perfect integration. (So, no workarounds)
Anybody any experience or ideas on how to do this ?
Thanks in advance.
Re: copy fields to a new outlook e-mail
I would just like to add that it should also be able to do attachements.
So I guess that redirecting to a mailto:-hyperlink doesn't do the trick here.
Anybody any suggestions ?
Re: copy fields to a new outlook e-mail
To do anything complicated on the client-side with applications you'd need an ActiveX control I'd imagine!
Re: copy fields to a new outlook e-mail
I wrote a small piece of code. It looks like this.
Code:
Outlook.ApplicationClass app = new ApplicationClass();
Outlook.NameSpace nmsp = app.GetNamespace("MAPI");
Object mail = app.CreateItem(OlItemType.olMailItem);
Outlook.MailItemClass mymail = (Outlook.MailItemClass)mail;
mymail.Body = "blablabla";
mymail.To = "[email protected]";
mymail.CC = "[email protected]";
mymail.Display(app);
But I have no idea how to make it work on the client side. Making an activeX-controll in VB6 wouldn't work probably since I can't access the OutlookReference I think.
And ActiveX is dead under .NET isn't it or is it possible to make ActiveX controlls in Visual Studio.NET ?
Or is there a .NET alternative?
Re: copy fields to a new outlook e-mail