I'm sending company emails from a PowerShell script that reads a CSV. German characters in the message body arrive as question marks. I've tried different encoding values and also tried HTML, but the HTML attempt produced an error.
For now I need to use Send-MailMessage, even though it's obsolete. The umlauts are hardcoded in the body rather than coming from the CSV. What should I check, and can an HTML body contain variables?
++nearly!sorted:
An editor's Save with Encoding option is usually where you can choose UTF-8 with BOM. The exact wording depends on the editor.