Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以打开 Outlook 的“新邮件”对话框并从 ASP.Net 网页插入附件。
我正在尝试从 Intranet 运行它,并且我的台式机上确实有 Outlook,这是我打开页面的地方,这里的其他人也是如此。
我将不胜感激任何想法,帮助,教程。谢谢
可能你可以在 IE 中使用一些 ActiveX 对象来做到这一点,但是使用常规的 JS/HTML 你不能做这样的事情。从浏览器打开 Outlook 窗口的唯一方法是<a href="mailto:...."打开默认邮件程序(它可能是与 Outlook 不同的程序)。但这是非常有限的选择(正文大小有限,没有 html,没有附件等)
<a href="mailto:...."
假设这里最好的方法是从服务器发送电子邮件。您可以向用户询问电子邮件正文和收件人列表并将其发送到使用System.Net.Mail命名空间。
System.Net.Mail
assume in visual studio i have a method :
[WebMethod] public List<PhongTro> GetAllLodgingHousesByAddress(string address)
4 c# - 结合 C#.NET 和 VB.NET 的缺点
2 3d - 3D Perspective Projection doesn't look right
1 javascript - FF正常时如何调试损坏的IE 8
2 javascript - 搜索 HTML 表格并查找具有所需类的文本字段
3 cakephp - 如何在 CakePHP 中创建访客帐户而不将其实际放置在数据库中?
Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641