<p>I have a web application developed with ASP.net and C#  that is running on my companies' intranet.  Because all the users for this application are all using Microsoft Outlook without exception, I would like for the the application to open up an Outlook message on the client-side.  <strong>I understand that Office is designed to be run on the desktop and not from a server, however I have no trouble creating a Word or Excel document on the client-side.</strong>  </p>

<p>I have code that instantiates the Outlook object using the Microsoft.Office.Interop.Outlook namespace and Outlook installed on the server.  When I try to run the code from the server, I get a DCOM source error message that states "The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {000C101C-0000-0000-C000-000000000046} to the user This security permission can be modified using the Component Services administrative tool."  I have modified the permissions using the Component Services tool, but still get this same error.  </p>

<p>Is there a way to overcome this or is this a fruitless exercise because Outlook cannot be opened on the client side from the server-side code?</p>

<p>Mailto will not work due to the extreme length that the emails can obtain.  Also, the user that sends it needs add in eye-candy to the text for the recipients.</p>

[{'answer_id': 44433, 'author': 'Ryan Farley', 'author_id': 1627, 'author_profile': 'https://Stackoverflow.com/users/1627', 'pm_score': 4, 'selected': True, 'text': '<p>You cannot open something on the client from server side code. You\'d have to use script on the page to do what you\'re wanting (or something else client-side like ActiveX or embedded .NET or something)  </p>\n\n<p>Here\'s a sample Javascript that invokes an Outlook MailItem from an webpage. This could easily be injected into the page from your server-side code so it executes on the client.  </p>\n\n<p><a href="http://www.codeproject.com/KB/aspnet/EmailUsingJavascript.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/aspnet/EmailUsingJavascript.aspx</a></p>\n'}, {'answer_id': 44439, 'author': 'hometoast', 'author_id': 2009, 'author_profile': 'https://Stackoverflow.com/users/2009', 'pm_score': 2, 'selected': False, 'text': "<p>(hint: formatting in your question)</p>\n\n<p>I'm not understanding what's wrong with a mailto link or a formmail-type page.</p>\n"}, {'answer_id': 44450, 'author': 'Jason', 'author_id': 1338, 'author_profile': 'https://Stackoverflow.com/users/1338', 'pm_score': 1, 'selected': False, 'text': '<p>If everyone in the company uses Outlook, then just using a standard "mailto" link should always open Outlook.  It sounds like you\'re over-engineering this.</p>\n'}, {'answer_id': 44452, 'author': 'Doozer', 'author_id': 4581, 'author_profile': 'https://Stackoverflow.com/users/4581', 'pm_score': 1, 'selected': False, 'text': '<p>Do you want to open an existing E-Mail or create a new one?\nPerhaps I misunderstood your question; could you provide a link like: </p>\n\n<pre><code>mailto:recipient@email.tld?subject=This%20is%20the%20subject&amp;body=Hello%20there!\n</code></pre>\n\n<p>When the user clicks on that a link, a new Outlook-E-Mail will be opened and the:</p>\n\n<ul>\n<li><strong><em>Recipient</em></strong>: recipient@email-tld </li>\n<li><strong><em>Subject</em></strong>: This is the subject</li>\n<li><strong><em>Body</em></strong>: Hello there!  </li>\n</ul>\n\n<p>All these fields are already filled from the link.</p>\n'}, {'answer_id': 44464, 'author': 'Keng', 'author_id': 730, 'author_profile': 'https://Stackoverflow.com/users/730', 'pm_score': 1, 'selected': False, 'text': "<p>I'll just throw this out there cuz it's been asked.</p>\n\n<p>Mailto has a lot of disadvantages; mainly size.  Since the sender needs to do alot of formatting on the email text, the html code generated can take up a lot of space that fails when using mailto.</p>\n\n<p>thanks for the suggestion though.</p>\n"}]
['https://Stackoverflow.com/questions/44421', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/730/']