https://github.com/suglasp/pwsh_exchange_auth_smtp_mailfunction
Powershell handy function to send authenticated smtp mailing through Exchange mail server
https://github.com/suglasp/pwsh_exchange_auth_smtp_mailfunction
mailfunction powershell pwsh smtp
Last synced: about 2 months ago
JSON representation
Powershell handy function to send authenticated smtp mailing through Exchange mail server
- Host: GitHub
- URL: https://github.com/suglasp/pwsh_exchange_auth_smtp_mailfunction
- Owner: suglasp
- Created: 2020-03-11T08:52:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T09:01:25.000Z (over 6 years ago)
- Last Synced: 2025-01-19T22:41:52.045Z (over 1 year ago)
- Topics: mailfunction, powershell, pwsh, smtp
- Language: PowerShell
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
Example code to send a authenticated mail through an on-premise Exchange server from Powershell.
There are two scripts :
- pwsh_exch_smtp_gencred.ps1 : generates a hashed clixml file that holds the credential file for the SMTP authentication.
- pwsh_exch_smtp_send.ps1 : example function for sending an authenticated mail, loading the clixml file.
The function can include attachments.
Other files:
- smtp_addresses.txt : a text file that holds mail adresses where the function needs to send to (recipients)
- test.txt : a demo file to show the function can send attachments.