Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/409.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
执行用python smtplib发送的电子邮件的Javascript_Javascript_Python_Html_Smtp_Smtplib - Fatal编程技术网

执行用python smtplib发送的电子邮件的Javascript

执行用python smtplib发送的电子邮件的Javascript,javascript,python,html,smtp,smtplib,Javascript,Python,Html,Smtp,Smtplib,我正在练习发电子邮件,我想知道当您使用smtplib和email libs发送和发送电子邮件时,以及当您的邮件包含HTML代码时,是否可以执行Javascript代码 似乎什么都没有 HTML文件: <!DOCTYPE html> <html lang="en"> <head> </head> <body> </div> <p class='Test'>This is my first sentence&l

我正在练习发电子邮件,我想知道当您使用smtplib和email libs发送和发送电子邮件时,以及当您的邮件包含HTML代码时,是否可以执行Javascript代码

似乎什么都没有

HTML文件:

<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
</div>
   <p class='Test'>This is my first sentence</p>

   <script type="text/javascript">
       var list = document.querySelector('p.Test');
       list.innerHTML = "I want to change it";
   </script>
</body>
</html>

我希望这是清楚的。

据我所知,我们做不到,我也尝试过这样做,我想在邮件中包含一个搜索栏,用于搜索表格内容

"No. JavaScript won't work in mails. A cool way to implement this feature 
 would be to include an image that points to your server, where you generate 
 the weather report server side and render it as an image, and return it to 
 the client.

 Note though that Gmail caches images and depending on when he does it that 
 might not be refreshed."
资料来源:

"No. JavaScript won't work in mails. A cool way to implement this feature 
 would be to include an image that points to your server, where you generate 
 the weather report server side and render it as an image, and return it to 
 the client.

 Note though that Gmail caches images and depending on when he does it that 
 might not be refreshed."