链接打开电子邮件客户端和附件文件? [英] Link to open email client and attach file?
问题描述
不知道这是否与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屋!