在PowerShell发送的html代码中嵌入背景图像

在PowerShell发送的html代码中嵌入背景图像

本文介绍了在PowerShell发送的html代码中嵌入背景图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能并不重要,但我需要这个:D

maybe not important but i need this :D

我写了一个包含表格,标签的HTML代码,css样式,变量和...插入到powershell脚本中以用作电子邮件的正文,我喜欢该html页面以获得背景图像

i have written a HTML code full of tables, tags, css styles, variables and ... which is inserted into a powershell script to be used as the body of an email and i like that html page to have a background image

当我发送给自己发电子邮件,图像显示在电子邮件的背景中(显然是因为我的电脑可以到达图像的地址)

when i sent email to myself, image is shown in background of email (it is obvious cause the address of the image can be reached in my computer)

但是当我发送给其他人时人们,他们看不到(显而易见)

but when i send it to other people, they cannot see that (obvious again)

我的朋友告诉我这可以用.net编程语言解决但是我能通过html和powershell做到吗?

my friend told me this can be solved in .net programming languages but can i make it right through html and powershell ?

谢谢

Payne回来了

推荐答案

请参阅存储库以获取如何显示脚本在邮件中嵌入图片。 它不需要特殊编码。

See repository for scripts showing how to embed an image in a message.  It does not require special coding.

更简单的方法是将图像放在公共Web服务器上。 今天大多数非个人邮件都是这样做的。 效率更高。

The easier method is to place the image on a public web server.  Most non-personal mail does that today.  It is more efficient.


这篇关于在PowerShell发送的html代码中嵌入背景图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 18:35