Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am using MAPI for opening default web mail client in my C# web application. Now it is opening as dialog box first then outlook window. I want to open direct default mail client window using MAPI.

But when I am deploying on IIS then MAPI is not calling Mail Dialog box.

Is there simple way of calling web mail client using MAPI with attachment?
Posted
Updated 19-Oct-12 3:39am
v2

If you're talking about showing the default mail client on a client computer, not the server (which is where all of your C# code is running!), all you do is provide a "mailto:" link and the client browser will handle the rest.

If the client doesn't have a default mail client installed locally, there is no way for you to determine what on-line mail client the user is using so the answer is no.

Oh, and mailto does not support attachments as this is a security concern.
 
Share this answer
 
v2
You're likely writing this MAPI code in your code behind so of course it won't work on a client machine when deployed in IIS.
The MAPI code is trying to run your outlook from the server, not the client.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900