是否可以在 javascript 中使用“mailto:”重定向附加文件?
像这样:
document.location = "mailto:"+recipient+"?subject="+subject+"&body="+msg+"?attach="+"file1.zip";
最佳答案
不可以,您不能使用 mailto:
URL 方案向邮件添加附件。
mailto:
仅支持 header 值或 text/plain
内容。参见 RFC 2368了解详情。
关于javascript - 通过 mailto URI 附加文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2372036/