通过mailto URI附加文件 [英] Attach File Through mailto URI

查看:260
本文介绍了通过mailto URI附加文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在javascript中使用mailto:重定向附加文件吗?

Is it possible to attach a file using "mailto:" redirect in javascript?

这样的一个例子:

document.location = "mailto:"+recipient+"?subject="+subject+"&body="+msg+"?attach="+"file1.zip";


推荐答案

不,您不能添加附件到邮件使用 mailto: URL方案。

No, you can not add an attachment to a message with the mailto: URL scheme.

mailto:只支持标题值或 text / plain 内容。有关详细信息,请参阅 RFC 2368

mailto: only supports header values or text/plain content. See RFC 2368 for details.

这篇关于通过mailto URI附加文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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