链接打开电子邮件客户端和附件文件? [英] Link to open email client and attach file?

查看:199
本文介绍了链接打开电子邮件客户端和附件文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道这是否与PHP或Javascript / jQuery有关,但是当用户点击链接/按钮时,有没有办法将文件附加到电子邮件客户端(即Outlook)?



我有一个生成PDF的链接,我想要的是,当有人点击链接时,它将打开他们的电子邮件客户端,并附上了PDF,并且已经填写了。 / p>

我知道,您可以使用< a href =mailto:...,但只能打开邮件客户端。我还需要附上一个填写主题的文件。



这是否可以用PHP或Javascript?

解决方案

资料来源: http://www.rapidtables。 com / web / html / mailto.htm



mailto :name@email.com - 电子邮件收件人地址

cc =name@email.com - 复印电子邮件地址



bcc = name@email.com - 盲卡复制电子邮件地址



主题 =主题文本 - 主题电子邮件



正文 =正文 - 电子邮件正文



示例:

 < a href =mailto:name1@rapidtables.com?cc=name2@rapidtables.com& bcc = name3@rapidtables.com& subject =电子邮件的主题& body =电子邮件的正文>使用cc,bcc,subject和body发送邮件< / a> 


Not sure if this relates more to PHP or Javascript/jQuery, but is there a way to attach a file to an email client (i.e Outlook), when user click on a link/button?

I have a link that generates a PDF and I want it so that, when someone click on a link, it will open up their email client with the PDF already attached, and subject already fill in.

I know, you can use <a href="mailto:..." but that only opens up the mail client. I also need to attach a file with a subject fill in.

Is this doable with PHP or Javascript?

解决方案

Source: http://www.rapidtables.com/web/html/mailto.htm

mailto:name@email.com - e-mail recipient address

cc=name@email.com - carbon copy e-mail address

bcc=name@email.com - blind carbon copy e-mail address

subject=subject text - subject of e-mail

body=body text - body of e-mail

Example:

<a href="mailto:name1@rapidtables.com?cc=name2@rapidtables.com&bcc=name3@rapidtables.com&subject=The subject of the email&body=The body of the email">Send mail with cc, bcc, subject and body</a>

这篇关于链接打开电子邮件客户端和附件文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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