0
我有一個asp.net應用mvc4,其中我有這樣的看法:自動啓動用戶的電子郵件軟件在Asp.net MVC
<form action ="\Home\Index" method="post" >
<input type="submit" name="mail" value="launch mail" />
</form>
,並在控制器:
public ActionResult Index()
{
return View();
}
我當我點擊提交按鈕時,想要在PC上啓動默認郵件軟件(例如outlook,thunderbird等)。
那麼如何修改控制器中的動作來自動啓動郵件軟件呢?
你可以在客戶端上做到這一點,看看這個答案http://stackoverflow.com/questions/3868315/invoke-click-a-mailto-link-with-jquery-javascript – asymptoticFault
我想一個版本的mailto '在C#中 –
現在我再想一遍,在*服務器*上做這件事並沒有什麼意義,因爲你試圖打開一個* client *應用程序。 – asymptoticFault