Send inline images using send-mailmessage
问题 I am trying to send an html formatted email with inline images from the command line using send-mailmessage. I have looked everywhere and wasn't able to find the solution. I am able to get the email to send but the recipient doesn't receive the images. Here is my code: $smtp = "smtp.server.com" $to = "recp@example.com" $from = "from@example.com" $subject = "This is a subject" $body = (-join(Get-content \email.html)) send-MailMessage -SmtpServer $smtp -To $to -From $from -Subject $subject