[英]Using Mailto link can I add the current page in the outlook mail body if possible then how ? in asp.net
使用mailto超鏈接我想使用JavaScript或asp.net在Outlook郵件正文中添加當前頁面。
請提供想法,以便我可以在我們的程序中嘗試。
謝謝您的幫助 ...
這是完整的代碼:
<a href="mailto:someone@example.com?Subject=this is subject&body=I will go in to body" target="_top">
發送郵件
值的添加就像在querystring中一樣。 希望這可以幫助。
編輯:如果要在正文中使用當前頁面URL,則替換為我將使用當前頁面URL進入正文。 可以在服務器(C#)或使用javascript的客戶端上完成。
您可以為此使用jQuery
.email
是您在其中調用mailto屬性的鏈接上的類
它應該看起來像這樣
<a href="javascript:void(0);" class="email">Mail Here</a>
ContentId
是要在正文中附加其文本的任何控件的ID。
$(document).ready(function(){
var body=$("#ContentId").text();
$(".email").attr("href", "mailto:?subject=...;body"+body+window.location);
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.