在html5网页中的电子邮件中附加文件 [英] Attaching a file in email in html5 web page

查看:104
本文介绍了在html5网页中的电子邮件中附加文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html网页应用程序中使用以下代码附加文件,但它不工作

I am attaching file in html web app using following code but it is not working

 <div class="email_pot">

<a href="mailto:eptt@att.com?subject=Enhanced Push-to-Talk&attachments=["js/data.js","js/data.js"]"></a>

</div>

对于附件文件,我使用以下过程,如下所示:

For attach file i use following procedure as it is given below

      {
      "toEmail": "ToAddressEmail"
      ,"toName": "ToAddressName"
      ,"subject": "SubjectLine"
      ,"body":"BodyText"
      ,"bodyHtml":"HTML Body Text"
      ,"attachments":["AttachmentPath","
      AttachmentPath"],"titleColour":"Hex Colour (i.e.FF0000)"
      }


推荐答案

所以,你的问题是什么?我会假设您尝试发送电子邮件时收到一些错误。之前我已经回答过一个非常类似的问题

So, what's your question? I will assume that you are getting some error when you tried to send the email. I have answered a very similar question before:

根据 RFC 2368 您无法使用mailto向邮件添加附件:URL方案由于安全原因:


解释mailto URL的用户代理应该选择不创建消息,如果有的话标题被认为是危险的(...)只有主题,关键字和正文标题被认为是安全和有用的。

The user agent interpreting a mailto URL SHOULD choose not to create a message if any of the headers are considered dangerous (...) Only the Subject, Keywords, and Body headers are believed to be both safe and useful.

这篇关于在html5网页中的电子邮件中附加文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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