打开outlook新的电子邮件窗口,内容已经填满 [英] To open outlook new email window with content already filled

查看:1127
本文介绍了打开outlook新的电子邮件窗口,内容已经填满的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何实现电子邮件功能,其中:



当我点击asp按钮时,会打开一个新的电子邮件窗口,其中已经从代码中添加了所有内容包括地址,来自地址,主题和正文)。



但不应自动发送电子邮件。它需要用户点击发送按钮。



目的是,管理员可以在发送给用户之前修改电子邮件内容。



有人有类似的功能,可以帮助还是让我想法如何实现?

解决方案

我想你为此不需要ASP.NET。您所需要的只是 mailto 及正确的参数。

 示例:

< a href =mailto:someone@example.com?Subject = Hello%20again&体=此%图20是%20body>
发送邮件< / a>

这将发送电子邮件到someone@example.com与主题你好和身体这是身体。您也可以使用CC参数添加CC电子邮件。



有关此链接的更多信息



可能有助于如何正确编码mailto链接?


How can I implement email functionality, where:

When I click on an asp button, a new email window opens with all the content already added from code behind( including To address, From address, Subject and Body).

But the email should not be sent automatically. It requires user to click send button.

The purpose is, admin can modify the email content before sending to users.

Has anyone worked on similar functionality and can help or give me idea on how to implement it ?

解决方案

I think you do not need ASP.NET for this. All you need is mailto with the right parameters.

Example: 

<a href="mailto:someone@example.com?Subject=Hello%20again&body=This%20is%20body">
Send Mail</a>

This will send email to someone@example.com with subject "Hello" and body "This is body". You can also use CC parameter to add CC emails.

More info on this link

A related question that may help How do I properly encode a mailto link?

这篇关于打开outlook新的电子邮件窗口,内容已经填满的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆