2019/07/07 #メールを送る
皆様おはようございます、
#昨日の3分PowerShell(備忘録)
#メールを送る
$to = [宛て先]
$from = [送信元]
$smtp = [メールサーバ] #IPアドレスでも可
$attach0 = [添付1]
$attach1 = [添付2]
$subject = [題名]
$body = [本文] # `n で改行
$encoding = [エンコード方式]
Send-MailMessage `
-to $to -From $from -SmtpServer $smtp -Attachments $attach0,$attach1 `
-Subject $subject -Body $body -Encoding $encoding
毎日の通知はこんな感じでタスクスケジューラと組み合わせて
ではまた;