728x90

$message = '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><html><head></head><body lang=FR-CA>This is the body of the message 사랑한다요~~~</body></html>'

send-MailMessage -to "test001@contoso.com" -Encoding ([System.Text.Encoding]::UTF8) -subject "PowerShell Rocs" -from "test001@contoso.com"  -bodyasHTML -body $message -smtpserver "메일서버주소"


If you want to send your mail to multiple recipients, use the following syntax for the -to  parameter :

@("bozo@domain.com","toto@domain.com")



728x90

+ Recent posts