$images = @{ 
    image1 = 'c:\temp\test.jpg' 
    image2 = 'C:\temp\test2.png' 
}  
  
$body = @' 
<html>  
  <body>  
    <img src="cid:image1"><br> 
    <img src="cid:image2"> 
  </body>  
</html>  
'@  
  
$params = @{ 
    InlineAttachments = $images 
    Attachments = 'C:\temp\attachment1.txt', 'C:\temp\attachment2.txt' 
    Body = $body 
    BodyAsHtml = $true 
    Subject = 'Test email' 
    From = 'chaosnatureoriginal@gmail.com' 
    To = 'chaosnatureoriginal@gmail.com' 
    Cc = 'chaosnatureoriginal@gmail.com', 'osagk@aol.com' 
    SmtpServer = 'smtp.gmail.com' 
    Port = 587 
    Credential = (Get-Credential) 
    UseSsl = $true 
} 
 
Send-MailMessage @params