Windows Server 2022 Standard
example that works:
$encoding = 'utf8'
Send-MailMessage -Encoding $encoding -To $EmailTo -From $EmailFrom -Subject $Subject -Body $body -BodyAsHtml -SmtpServer smtp.office365.com -UseSSL -Credential $credential -Port 587
Matjaž