PowerShell
1Send-MailMessage -to "sarah@xxx.com" -from "sarah@xxx.com" -subject "test" -SmtpServer "server.mail.com"
上記のコードだと、下記のエラーが出てしまいます。
Send-MailMessage : Unable to connect to the remote server
At line:1 char:1
- Send-MailMessage -to "sarah@xxx.com" -from "sarah@xxx.com" -subje ...
-
+ CategoryInfo : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-MailMessage], SmtpException + FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage
アンチウイルスがブロックしてるのか、ポートの問題なのか、それとも、サーバーのアドレスが間違っているのか
調査したいのですが、調査するにはどのようなコマンドがあるでしょうか・・・
ありがとうございます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。