[英]Add an attachement to a new outlook email using mailto URL
Can I add a attachment to a new outlook email using mailto tag of html. 我可以使用html的mailto标签将附件添加到新的Outlook电子邮件中吗?
Tried this : mailto:?subject=Pictures from PhotoAlbum&cc= &body=This is the body text&attachment=C:\\\\Users\\\\Public\\\\Pictures\\\\Desert.jpg
尝试过这个: mailto:?subject=Pictures from PhotoAlbum&cc= &body=This is the body text&attachment=C:\\\\Users\\\\Public\\\\Pictures\\\\Desert.jpg
Does not work. 不起作用。
There seems to be solution in IE using ActiveX object which do not run on my IE browser but It will be better to have a solution working in Chrome. IE中似乎有使用ActiveX对象的解决方案,该解决方案无法在我的IE浏览器上运行,但是最好在Chrome中使用解决方案。
The mailto: protocol doesn't allow to add attachments. mailto:协议不允许添加附件。 See mailto Protocol and The mailto URL scheme for more information. 有关更多信息,请参见mailto协议和mailto URL方案 。
Most probably you get the "Automation Server Can't Create Object" error which means that your browser's security settings are too low for the ActiveX control to run. 您很可能会收到“自动化服务器无法创建对象”错误,这意味着您的浏览器的安全设置过低,无法运行ActiveX控件。 You have to move your page into the trusted sites list and lower the ActiveX settings so it can run. 您必须将页面移到“受信任的站点”列表中,并降低ActiveX设置才能运行。 Be aware, the ActiveXObject object is only available on Internet Explorer. 请注意,ActiveXObject对象仅在Internet Explorer上可用。 So, if you need to get the code running in all browsers I'd suggest choosing another solution. 因此,如果您需要使代码在所有浏览器中运行,建议您选择其他解决方案。
You may find the How to send an email from JavaScript thread helpful. 您可能会发现“ 如何从JavaScript线程发送电子邮件”很有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.