简体   繁体   English

通过python脚本发送包含javascript的动态html电子邮件

[英]sending dynamic html email containing javascript via a python script

  1. at the first place, I could not help myself with the correct search terms on this. 首先,我无法帮助自己找到正确的搜索词。
  2. secondly, I couldnt pretty much make it working with standard smtplib or email package in python. 其次,我几乎无法使其与python中的标准smtplib或电子邮件包一起使用。

The question is, I have a normal html page(basically it contains a that is generated from bokeh package in python, and all it does is generating an html page the javascript within renders a nice zoomable plot when viewed in a browser. 问题是,我有一个普通的html页面(基本上它包含一个由python的bokeh包生成的页面,它所做的只是生成一个html页面,当在浏览器中查看时,其中的javascript呈现了一个不错的可缩放绘图。

My aim is to send that report (the html basically) over to recipients in a mail. 我的目的是通过邮件将该报告(基本上是html)发送给收件人。

Sorry, but you'll not be able to send an email with JavaScript embedded. 抱歉,您将无法发送带有JavaScript的电子邮件。 That is a security risk. 那是安全隐患。 If you're lucky, an email provider will strip it before rendering, if you're unlucky, you'll be sent directly to spam and the provider will distrust your domain. 如果幸运的话,电子邮件提供商将在呈现之前将其删除。如果不幸的话,您将被直接发送到垃圾邮件,提供商将不信任您的域。

You're better off sending an email with a link to the chart. 您最好发送一封带有图表链接的电子邮件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让我的 html 电子邮件表单在发送到 php 脚本进行发送之前使用 javascript 进行验证 - How to I get my html email form to validate using javascript before sending it to the php script for sending 在JavaScript中通过JSON通过Mandrill发送电子邮件 - Sending email via Mandrill through JSON in javaScript 是否可以仅使用 JavaScript 而不使用 HTML 将动态链接插入到电子邮件中? (使用 Google Script 发送电子邮件) - Is it possible to insert a dynamic link into an email using only JavaScript and no HTML? (Using Google Script to sent the email) 动态str替换包含流的html上的javascript - Dynamic str replace with javascript on html containing stream 通过javascript注入HTML脚本 - HTML script injection via javascript Javascript-通过Ajax以字符串形式发送html代码 - Javascript - sending html code in string via Ajax 通过动态注入JavaScript依赖项<script> tag - JavaScript dependency injection via dynamic <script> tag 通过调用.aspx.vb从.html页面发送电子邮件 - Sending An Email From a .html Page via Calling A .aspx.vb 通过 GmailApp 作为 HTML 发送电子邮件以保留签名和图像 - Sending email via GmailApp as HTML to retain signature & image 使用 PHPMailer 和 html2pdf 通过 email 发送 PDF 数据 - Sending PDF data via email using PHPMailer and html2pdf
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM