I love this, I am looking to embed a few images in the email to match our internal email format. Right now I have to do it via powershell so that I can add an attachment for the embedded logo, can you think of a way to do that without powershell?
Code I use in PowerShell to attach image:
$msg = new-object Net.Mail.MailMessage
$att = new-object Net.Mail.Attachment("C:\Scripts\Email_Resources\logo.jpg")
$att.ContentDisposition.Inline = $True
$att.ContentDisposition.DispositionType = "Inline"
$att.ContentType.MediaType = "image/jpg"
$att.ContentId = "logo"
And then in the body html I call the image:
There's not maybe a public or internal url holding those images that your users would reliably be able to load is there? Instead of adding the image to the payload of the email just put in an <img> that points to the company website or something?
I should be able to dig one up, its a much simpler solution. Maybe even drop the one onto Orion and pull it from there.
Edit: I should say that I don't pick the format/image, we have a specific approved formatting for message I am matching so users know the content came from IT. Otherwise just any logo image from the site would do.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.