如何在mailto链接中附加画布图像? [英] how to attach canvas image in a mailto link?
问题描述
我在html页面中创建了一个画布图像,我想创建一个mailto链接,单击该链接会打开默认的电子邮件应用程序(例如outlook),附带画布的图像。可以这样做吗?
I created a canvas image in my html page, and I want to create a mailto link, that when clicked on will open up the default email application (outlook for example) with the image of the canvas attached. Can this be done?
谢谢。
推荐答案
没有。使用mailto:链接(我认为这是你要求的)是不可能的,因为 mailto:链接不支持传递任何类型的附件(文件,数据,等等),仅文本内容(主题,消息......)
No. It's not possible to do this with a "mailto:" link (that I suppose is what you are asking for), due that mailto: links do not support passing any kind of attachments (files, data, whatever), only text content (Subject, message... )
在此处查看: RCF 2368
我认为可以从中发送电子邮件使用表单的服务器,我的意思是将画布作为DataURL发送到可以将其附加到电子邮件的PHP,并使用 PHPMailer类将该电子邮件与附加文件一起发送。这是我现在能解决的唯一解决方法。
I think will be possible to do it sending the email from the server using a form, I mean send the canvas as DataURL to a PHP that could attach it to an email, and send that email with the attached file using PHPMailer Class. That's the only workaround I can figure out right now.
Greetz。
c:。
Greetz.
c:.
这篇关于如何在mailto链接中附加画布图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!