Command to send an emails.

powershell -ExecutionPolicy ByPass -Command "& {Send-MailMessage -SmtpServer Server.Domain -To email@address.com -From email@address.com -Subject 'Testing' -Body '123'}"

Categorized in:

Batch, Powershell,

Last Update: May 18, 2024