1 c# email model-view-controller jquery templates
是否有可能,如果是这样,如何在MVC Web应用程序中使用C#或jQuery在页面上显示按钮或链接会导致Outlook打开设置正文和主题?
基本上,我希望用户能够从下拉列表中选择一个模板,然后单击一个按钮或链接,说"发送模板化电子邮件",并让按钮/链接打开客户端的Outlook或默认电子邮件应用程序,主题和正文已填充通过他们选择的模板.
我怎么能这样做?
Joe*_*Joe 10
你可以这样做:
<a href="mailto:email@emu.edu?subject=Subject&body=Body Text">
...
// something like this
$('#btn').click(function () {
$('#link').attr('href', 'mailto:' + $('#email').text() + '?body=' + template[idx].body + '&subject=' + template[idx].subject);
})
Run Code Online (Sandbox Code Playgroud)