Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

scottgriv/powershell-send_email_script

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: linktr.ee/scottgriv
Reference: Main Branch


About

A simple script to send an email using Microsoft PowerShell.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.