Reproducing an html email
Posted on 2014-03-12
I'm running a powershell script that accumulates some reporting data.
Within the current method, is a copy/paste solution from an internal web page. This copy includes a single image - a graphical represenation of a failure.
I have the link to the image, and if I paste my html code into a file, save it as html, it renders fine.
However, if I do this from within powershell, using the send-mailmessage cmdlet with -bodyashtml, it fails to bring in the image - I get a blank box instead.
How can I reproduce this in my email?