Browse Source

added PS alternative

Toastie 3 weeks ago
parent
commit
c1d505d997
1 changed files with 7 additions and 0 deletions
  1. 7 0
      linux/Mail-Submission-AuthLogin.md

+ 7 - 0
linux/Mail-Submission-AuthLogin.md

@@ -27,4 +27,11 @@ To: Mary Doe <mary.doe@example.net>
 Subject: Test ESMTP Auth LOGIN
 Testing proves the existence of bugs not their absence
 .
+```
+
+## Alternative using PowerShell
+```
+$creds = get-credential
+Send-MailMessage –From user@example.com –To mary.doe@example.net –Subject "Test Email" –Body "Test SMTP Service from Powershell on Port 587" -SmtpServer smtp.office365.com -Credential $creds -UseSsl -Port 587
+
 ```