Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.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
使用shell脚本将图像嵌入电子邮件_Shell_Sendmail - Fatal编程技术网

使用shell脚本将图像嵌入电子邮件

使用shell脚本将图像嵌入电子邮件,shell,sendmail,Shell,Sendmail,我有一个响应html的shell脚本,然后我需要将一些动态生成的图形(使用matplotlib)附加到我发送的电子邮件中 这些图像与shell脚本位于同一目录中 我尝试了的简单方法,但我收到的电子邮件没有显示图像。如何做到这一点,使图像显示为内联的 echo "</table><img src=\"citywise.png\"><P><img src=\"fivesec.png\"><P><img src=\"ten.png\"&

我有一个响应html的shell脚本,然后我需要将一些动态生成的图形(使用matplotlib)附加到我发送的电子邮件中

这些图像与shell脚本位于同一目录中

我尝试了
的简单方法,但我收到的电子邮件没有显示图像。如何做到这一点,使图像显示为内联的

echo "</table><img src=\"citywise.png\"><P><img src=\"fivesec.png\"><P><img src=\"ten.png\"><P><img src=\"fifteen.png\"><P><img src=\"thrty.png\"><P><img src="sixty.png"><P><img src=\"gtsixty.png\"><P><img src=\"hits.png\"></body></html>">>htTimernew.tsv


/usr/sbin/sendmail sankalp.jain@example.com < htTimernew.tsv
echo”

>htTimernew.tsv /usr/sbin/sendmail sankalp。jain@example.com

收件人无法看到您电子邮件中的图像,因为电子邮件中没有这些图像

试试这个: