{"id":18869983,"url":"https://github.com/deaksoftware/using-smtp-in-powershell","last_synced_at":"2025-07-30T01:09:02.554Z","repository":{"id":142922985,"uuid":"126253865","full_name":"DEAKSoftware/Using-SMTP-in-PowerShell","owner":"DEAKSoftware","description":"How to send emails using SMTP in a PowerShell environment.","archived":false,"fork":false,"pushed_at":"2018-03-26T03:11:24.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T17:06:39.019Z","etag":null,"topics":["powershell","smtp"],"latest_commit_sha":null,"homepage":"https://deaksoftware.com.au/articles/using_smtp_in_powershell/","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEAKSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-21T23:43:59.000Z","updated_at":"2019-11-11T13:20:48.000Z","dependencies_parsed_at":"2023-04-08T11:33:48.167Z","dependency_job_id":null,"html_url":"https://github.com/DEAKSoftware/Using-SMTP-in-PowerShell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DEAKSoftware/Using-SMTP-in-PowerShell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEAKSoftware%2FUsing-SMTP-in-PowerShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEAKSoftware%2FUsing-SMTP-in-PowerShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEAKSoftware%2FUsing-SMTP-in-PowerShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEAKSoftware%2FUsing-SMTP-in-PowerShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEAKSoftware","download_url":"https://codeload.github.com/DEAKSoftware/Using-SMTP-in-PowerShell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEAKSoftware%2FUsing-SMTP-in-PowerShell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267790821,"owners_count":24144892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","smtp"],"created_at":"2024-11-08T05:18:22.484Z","updated_at":"2025-07-30T01:09:02.513Z","avatar_url":"https://github.com/DEAKSoftware.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using SMTP in PowerShell\n\nDominik Deák\n\n\n## 1 Introduction\n\nThis repository contains sample code demonstrating how to take advantage of .NET libraries in PowerShell to facilitate email communications without using an actual email client.\n\n**Warning:** This is a demo only. These scripts are not intended to be used directly in a production environment.\n\n\n## 2 Instructions\n\n### 2.1 Prerequisites\n\nBefore using the demo code, the following tools and libraries are required. You may skip this section if these prerequisites are already installed.\n\n* PowerShell 6: \u003chttps://github.com/PowerShell/PowerShell/releases\u003e\n\n### 2.2 Configuration\n\n1. Create a new email address dedicated for experimentation purposes. This way you don't need to worry about accidentally deleting important messages.\n\n2. Edit the PowerShell script file `Source\\SendMail.ps1` and supply the outgoing SMTP server configuration, including the credentials needed for authentication:\n\n\t```powershell\n\t# Outgoing email configuration used for sending messages\n\t$outgoingUsername           = \"\"\n\t$outgoingPassword           = \"\"\n\t$outgoingServer             = \"\"\n\t$outgoingPortSMTP           = 587   # Normally 25 (not secure), 465 (SSL), or 587 (TLS)\n\t$outgoingEnableSSL          = $true\n\t$outgoingFromAddress        = $outgoingUsername\n\t$outgoingReplyToAddressList = @()\n\t$outgoingToAddressList      = @()\n\t$outgoingCCAddressList      = @()\n\t$outgoingBCCAddressList     = @()\n\t```\n\n\n## 3 Supporting Resources\n\n* [Using SMTP in PowerShell](https://deaksoftware.com.au/articles/using_smtp_in_powershell/) - Main article\n\n\n## 4 Legal and Copyright\n\nReleased under the [MIT License](./license.md).\n\nCopyright 2018, DEAK Software","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeaksoftware%2Fusing-smtp-in-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeaksoftware%2Fusing-smtp-in-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeaksoftware%2Fusing-smtp-in-powershell/lists"}