简体   繁体   English

使用mailto URL将附件添加到新的Outlook电子邮件中

[英]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.

相关问题 如何使用 JavaScript 将签名添加到 Outlook email 中? - How can I add a signature into an Outlook email with JavaScript mailto? Javascript:打开 Outlook 并将附件添加到新电子邮件 - Javascript: Open Outlook and add attachments to new email 使用mailto Javascript将本地文件的链接添加到电子邮件中 - Add a link to a local file to email using mailto Javascript 添加mailto:在每封电子邮件之前 - add mailto: before every email 有没有一种方法可以使用“ mailto”发送带有代码的代码,该代码可以检查用户是否具有gmail或Outlook(或其他)帐户? - Is there a way sending email using “mailto” with a code that checks if the user has a gmail or outlook (or other) account? 使用mailto设置电子邮件优先级 - Setting email priority using mailto 如果可能的话,可以使用Mailto链接将当前页面添加到Outlook邮件正文中吗? 在asp.net - Using Mailto link can I add the current page in the outlook mail body if possible then how ? in asp.net 使用邮件编码问题打开 outlook 上的邮件 - open the mail on outlook using mailto encode problem 在邮件链接的 email 正文中包含参数化的 URL - Include paramerised URL in email body of a mailto link mailto:创建电子邮件时,Internet Explorer在Outlook中反转时间字符串 - mailto: Internet explorer reversing timestring in outlook when email is created
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM