-
# 윈도우 파워쉘에서 진행
$EmailFrom = "보내는주소"
$EmailTo = "받는사람주소"
$Subject = "The subject of your email"
$Body = "What do you want your email to say"
$SMTPServer = "주소"
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 포트)
$SMTPClient.EnableSsl = $false
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)