So I was trying to send an email with images embedded in it using HTML and powershell but I'm not sure how to access the cid to reference the images when I add them to the Send-MailMessage -Attachments argument. I believe Send-MailMessage generates a random cid but I need to be able to reference this for a <img src='cid:imageCID'>. Has anyone ever encountered this before?
↧