Search code examples
powershellmime

Sending MIME multipart message with Send-mailmessage


Simple question but so far I can't figure out.

Is it possible to send an email multipart MIME message with send-mailmessage powershell cmdlet ?

Purpose is to embed inline images.

Thank you


Solution

  • I found out following PS module that fulfils my need : InlineMailAttachments.psm1 . It required some tuning, mainly for UTF-8 body content, but was operational in matter of minutes.

    https://www.powershellgallery.com/packages/InlineMailAttachments/1.0/Content/InlineMailAttachments.psm1