使用mailto发送带附件的电子邮件 [英] using mailto to send email with an attachment

查看:760
本文介绍了使用mailto发送带附件的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用outlook 2010发送带有附件(本地文件或Intranet中的文件)的电子邮件?

 < a href =mailto:a@gmail.com?subject = my report& body = see attachment& attachment = c:\myfolder\myfile.txt> 

似乎并不奏效。

解决方案

不,这根本不可能。在 mailto:协议中没有对它的规定,如果可能的话,这将是一个巨大的安全漏洞。



发送文件的最好方法是让客户发送电子邮件,我可以想到的是:


  • 让用户选择一个文件 将文件上传到服务器
  • 让服务器返回一个上传后的随机文件名称

  • 构建 mailto:链接,其中包含邮件正文中上传文件的URL


How can i send an email with an attachment (either local file or a file in the intranet) using outlook 2010?

<a href="mailto:a@gmail.com?subject=my report&body=see attachment&attachment=c:\myfolder\myfile.txt">

doesn't seem to work.

解决方案

Nope, this is not possible at all. There is no provision for it in the mailto: protocol, and it would be a gaping security hole if it were possible.

The best idea to send a file, but have the client send the E-Mail that I can think of is:

  • Have the user choose a file
  • Upload the file to a server
  • Have the server return a random file name after upload
  • Build a mailto: link that contains the URL to the uploaded file in the message body

这篇关于使用mailto发送带附件的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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