cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Highlighted
Level 13

Re: Basic HTML and CSS in Alerts

Still doesn't work without compressing the HTML

0 Kudos

Re: Basic HTML and CSS in Alerts

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:

<img src='cid:logo'>

0 Kudos
Highlighted

Re: Basic HTML and CSS in Alerts

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?

- Marc Netterfield, Github
0 Kudos
Highlighted

Re: Basic HTML and CSS in Alerts

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.

0 Kudos