$pw = import-csv D:\pw.csv
$user = "junjianyang@focuswin.cn"
$PWord = ConvertTo-SecureString –String "password" –AsPlainText -Force
$mycreds = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $User, $PWord
$pw | ForEach-Object {Send-MailMessage -Encoding utf8 -To $_.to -From junjianyang@focuswin.cn -Subject "Test测试" -Body ("密码是:" + $_.pw) -Credential $mycreds -SmtpServer smtp.office365.com -DeliveryNotificationOption Never -BodyAsHtml -UseSsl -port 587}

 

国际版的office 365 

相关文章:

  • 2021-05-15
  • 2021-10-11
  • 2021-06-17
  • 2022-01-28
  • 2021-09-03
猜你喜欢
  • 2021-06-13
  • 2022-12-23
  • 2021-08-17
  • 2021-05-19
  • 2021-07-14
  • 2021-07-08
相关资源
相似解决方案