/powershell-send_email_script

A simple script to send an email using Microsoft PowerShell.

Primary LanguagePowerShellThe UnlicenseUnlicense

PowerShell Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


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?

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

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 removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
  • For more details, see the LICENSE file in this repository.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch