2011-03-22 26 views
1

Mail Without Attachemnt調用Outlook與附件在Silverlight 4

我想調用Outlook與在Silverlight應用程序,主題,附件。 是否可以使用附件調用Outlook。發送附件在應用程序中是單調的。

我在HyperLink中使用NavigateUri完成此操作。 使用以下代碼

<HyperlinkButton x:Name="Mail" Content="Ramakrishnan" NavigateUri="mailto:[email protected]?subject=Mail With Attachment Testing"> 
       </HyperlinkButton> 

回答

1

您可以使用Outlook,但只能在OOB模式下使用。 Mike Taulty的博文有Silverlight 4 – Grabbing Emails from the Outlook Inbox。它可以幫助你。

你需要使用AutomationFactory所以看看它。

+0

我想在瀏覽器應用程序中顯示Outlook窗口,我不想在瀏覽器外應用程序中使用它 – Ramakrishnan 2011-03-22 08:45:13

+0

您不能從瀏覽器應用程序運行Outlook,它只能用於OOB應用程序。 [此鏈接](http://msdn.microsoft.com/en-us/library/ff457794(VS.95).aspx)描述了您可以使用自動化工廠的唯一方法。 – 2011-03-22 09:02:50

+0

以下是使用wcf服務發送電子郵件的其他解決方案的鏈接:http://forums.silverlight.net/forums/p/137451/307278.aspx,http://www.silverlightnext.com/2010/06/send -email-from-silverlight-application.html – 2011-03-22 09:08:43

1

如果您正在從Silverlight應用程序發送電子郵件,則可以使用Exchange Web Services - Managed API查看實施解決方案。

對於我的情況,我做了一個ASP.NET WebService處理我的網頁的所有Exchange通信,這意味着網頁保持苗條。使用EWS API,您可以直接通過交換直接讀取或創建和發送郵件,而無需處理任何Outlook互操作混亂。

欲瞭解更多信息,請參閱:http://msdn.microsoft.com/en-us/library/dd637749(v=exchg.80).aspx

1

我所做的就是讓一個Outlook插件,它公開WCF服務和做的工作。