The code you're running is attempting to open outlook on the server, thats all. I don't think there's any way to achieve what your wanting to do on the client machine, not from a web page. The closest you'll get to it is to specify the subject and body
in the mailto link, and let the client launch it's default mail client. There's no way you can specify an email attachment though, not on the client.
BSolveIT
Contributor
3712 Points
646 Posts
Re: open outlook email from ASP.NET page
Jul 18, 2008 08:44 AM|LINK
The code you're running is attempting to open outlook on the server, thats all. I don't think there's any way to achieve what your wanting to do on the client machine, not from a web page. The closest you'll get to it is to specify the subject and body in the mailto link, and let the client launch it's default mail client. There's no way you can specify an email attachment though, not on the client.
BSolveIT
Website Design
If you get an answer to a question, please mark it as the answer.
oPhoenixo
Member
2 Points
1 Post
Re: open outlook email from ASP.NET page
Apr 16, 2012 07:17 PM|LINK
This post is extremely old but as I came across it, I'm sure others might as well.
The trick is to do the c# code in javascript- take a look at this page-
http://www.codeproject.com/Articles/14106/Sending-Email-From-JavaScript-using-OutLook-Automa
I'd only use this in an intranet situation of course.