https://github.com/scottgriv/powershell-send_email_script
A simple script to send an email using Microsoft PowerShell.
https://github.com/scottgriv/powershell-send_email_script
email-sender powershell utility utility-app utility-application utility-script
Last synced: about 2 months ago
JSON representation
A simple script to send an email using Microsoft PowerShell.
- Host: GitHub
- URL: https://github.com/scottgriv/powershell-send_email_script
- Owner: scottgriv
- License: unlicense
- Created: 2023-01-06T20:44:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-09T04:23:38.000Z (4 months ago)
- Last Synced: 2025-03-28T18:32:31.441Z (about 2 months ago)
- Topics: email-sender, powershell, utility, utility-app, utility-application, utility-script
- Language: PowerShell
- Homepage:
- Size: 368 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---------------
PowerShell Send Email Script
A PowerShell script that sends a test email to a specified email address.
- Useful for testing email functionality and SMTP connectivity from a server.---------------
## Table of Contents
- [What is PowerShell?](#what-is-powershell)
- [Getting Started](#getting-started)
- [Resources](#resources)
- [License](#license)
- [Credits](#credits)## What is PowerShell?
PowerShell is a cross-platform task automation and configuration management framework, consisting of a command-line shell and scripting language. Unlike most shells, which accept and return text, PowerShell is built on top of the .NET Common Language Runtime (CLR), and accepts and returns .NET objects. This fundamental change brings entirely new tools and methods for automation.
## Getting Started
- Open the `send_email.ps1` file in a PowerShell editor on a Windows machine.
- Update the `$smtpServer`, `$smtpPort`, `$smtpUsername`, `$smtpPassword`, `$fromAddress`, `$toAddress`, and `$subject` variables with your SMTP server information and email addresses.
- Run the script to send a test email to the specified email address.## Resources
- [PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/overview?view=powershell-7.4)
## License
This project is released under the terms of **The Unlicense**, which allows you to use, modify, and distribute the code as you see fit.
- [The Unlicense](https://choosealicense.com/licenses/unlicense/) removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the [LICENSE](LICENSE) file in this repository.## Credits
**Author:** [Scott Grivner](https://github.com/scottgriv)
**Email:** [[email protected]](mailto:[email protected])
**Website:** [scottgrivner.dev](https://www.scottgrivner.dev)
**Reference:** [Main Branch](https://github.com/scottgriv/powershell-send_email_script)---------------