SendGridTools

0.4.8-preview0003

Manage SendGrid using its API with PowerShell functions and wrappers.

Minimum PowerShell version

5.1

This is a prerelease version of SendGridTools.
There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name SendGridTools -RequiredVersion 0.4.8-preview0003 -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name SendGridTools -Version 0.4.8-preview0003 -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Philip Haglund. All rights reserved.

Package Details

Author(s)

  • Philip Haglund

Tags

SendGrid Mail

Functions

Add-SGEmailAddressToSuppressionGroup Add-SGGlobalSuppression Confirm-SGAuthenticatedDomain Confirm-SGBrandedDomainLink Connect-SendGrid Disable-SGSubuser Disconnect-SendGrid Enable-SGSubuser Get-SGAddressWhitelistSetting Get-SGAlert Get-SGApiKey Get-SGAuthenticatedDomain Get-SGBlock Get-SGBounce Get-SGBounceByClassification Get-SGBouncePurgeSetting Get-SGBrandedDomainLink Get-SGDesign Get-SGEmailActivity Get-SGForwardBounceSetting Get-SGForwardSpamSetting Get-SGGlobalSuppression Get-SGInvalidEmail Get-SGIPAddress Get-SGMailSetting Get-SGPermissionScopes Get-SGSpamReport Get-SGSubuser Get-SGSuppression Get-SGSuppressionGroup Get-SGTeammate Invoke-SGCommand New-SGAlert New-SGApiKey New-SGAuthenticatedDomain New-SGBrandedDomainLink New-SGCombinedDomain New-SGSubuser New-SGSuppressionGroup Remove-SGAlert Remove-SGApiKey Remove-SGAuthenticatedDomain Remove-SGBlock Remove-SGBounce Remove-SGBrandedDomainLink Remove-SGGlobalSuppression Remove-SGInvalidEmail Remove-SGSpamReport Remove-SGSubuser Remove-SGSuppressionGroup Send-SGMailMessage Set-SGAddressWhitelistSetting Set-SGAlert Set-SGApiKey Set-SGAuthenticatedDomain Set-SGAuthenticatedDomainToSubUser Set-SGBouncePurgeSetting Set-SGBrandedDomainLink Set-SGForwardBounceSetting Set-SGForwardSpamSetting Set-SGSuppressionGroup

PSEditions

Core Desktop

Dependencies

This module has no dependencies.

Release Notes

## [0.4.8-preview0003] - 2026-11-17

### Changed

- The build now resolves its dependencies locally into `output/RequiredModules` at pinned versions, and the quality tests run on Pester 5.
- The module is built and tested on Linux, Windows and macOS in PowerShell 7 and in Windows PowerShell 5.1, and published to the PowerShell Gallery from GitHub Actions: every merge to main publishes a preview, and a full release comes only from a version tag.
- The changelog now lists every released version.
- The README states the real requirements (Windows PowerShell 5.1 or PowerShell 7) and the install and build steps.
- `about_SendGridTools` now has real content.
- The transport (the internal session class and `Invoke-SendGrid`) now has unit tests with mocked HTTP; the code coverage threshold is raised from 0 to 9, and the tests check that the API key never appears in errors, verbose, debug or output.
- The build now imports only the four Sampler task files that build and test use, so the publish and tag tasks are no longer defined and the `pack` workflow alias is gone.
- A quality test now checks that the number of exported functions equals the number of files in `source/Public`.
- `New-SGSubuser` now has unit tests with mocked HTTP in both shells, and the exposure tests check that request body values never appear in verbose, debug, errors or output.
- `New-SGAuthenticatedDomain`, `New-SGBrandedDomainLink`, `New-SGCombinedDomain`, `Set-SGAuthenticatedDomain` and the alert, suppression and forward spam commands fixed below now have unit tests with mocked HTTP, and the code coverage threshold is raised from 9 to 21.

### Removed

- The Azure Pipelines definition is removed.

### Fixed

- The module now imports in a new Windows PowerShell 5.1 session. The four `InvokeQuery` methods of the internal session class named a type that 5.1 has not loaded when the module is parsed; a quality test now imports the built module in a new PowerShell 7 process and, on Windows, a new Windows PowerShell process.
- Help for `New-SGAuthenticatedDomain`, `New-SGBrandedDomainLink` and `New-SGCombinedDomain` no longer documents a `-Force` parameter they do not have, and help for `Get-SGBounce`, `Get-SGBlock`, `Get-SGGlobalSuppression`, `Get-SGInvalidEmail` and `Get-SGSpamReport` no longer states a 500-item limit.
- Help for `Connect-SendGrid` now gives the real session lifetime of one hour (it said 12 hours), and the first `New-SGBrandedDomainLink` example names the link it asks for.
- `New-SGSubuser` now works in Windows PowerShell 5.1; it turned the password into plain text with a parameter that 5.1 does not have.
- `New-SGSubuser` returns only the created subuser; it also wrote its internal request to the output.
- `New-SGAuthenticatedDomain`, `New-SGBrandedDomainLink` and `New-SGCombinedDomain` now send the subdomain given with `-SendGridSubdomain` and send none when none is given; the first two failed or sent an empty subdomain, and `New-SGCombinedDomain` dropped it.
- `Set-SGAuthenticatedDomain` now updates each domain it is given with `-UniqueId` or from the pipeline; it made no change before.
- `Remove-SGAlert`, `Remove-SGSuppressionGroup`, `Set-SGSuppressionGroup` and `Remove-SGGlobalSuppression` now act on each id or address given, also from the pipeline, and `Set-SGSuppressionGroup` sends only the values given.
- An expired session now raises an error that names `Connect-SendGrid -Force`; it returned a text as if it were data.
- `New-SGSubuser` now sends the values of each piped object.

### Security

- Verbose output names the keys and value types of a request body but no longer its values, so a subuser password no longer shows with `-Verbose`.
- `New-SGSubuser` no longer writes its internal request, with the password in plain text, to the output.
- `Set-SGForwardSpamSetting` no longer writes its request, with the forwarding addresses, to the output.

FileList

Version History

Version Downloads Last updated
0.7.2-previe... 6 11/21/2026
0.7.1 9 11/21/2026
0.7.1-previe... 5 11/21/2026
0.7.1-previe... 5 11/21/2026
0.7.1-previe... 5 11/21/2026
0.7.1-previe... 5 11/21/2026
0.7.0 9 11/21/2026
0.7.0-previe... 5 11/20/2026
0.7.0-previe... 4 11/20/2026
0.7.0-previe... 5 11/20/2026
0.7.0-previe... 5 11/20/2026
0.6.1-previe... 5 11/20/2026
0.6.0 12 11/20/2026
0.6.0-previe... 10 11/20/2026
0.6.0-previe... 6 11/20/2026
0.6.0-previe... 6 11/20/2026
0.6.0-previe... 5 11/20/2026
0.6.0-previe... 5 11/20/2026
0.6.0-previe... 5 11/20/2026
0.6.0-previe... 5 11/20/2026
0.6.0-previe... 6 11/20/2026
0.5.3-previe... 5 11/19/2026
0.5.3-previe... 4 11/19/2026
0.5.2 12 11/19/2026
0.5.2-previe... 5 11/19/2026
0.5.2-previe... 5 11/19/2026
0.5.2-previe... 5 11/19/2026
0.5.2-previe... 5 11/19/2026
0.5.2-previe... 6 11/19/2026
0.5.2-previe... 5 11/19/2026
0.5.1 10 11/19/2026
0.5.1-previe... 6 11/18/2026
0.5.1-previe... 5 11/18/2026
0.5.1-previe... 4 11/18/2026
0.5.1-previe... 6 11/18/2026
0.5.1-previe... 5 11/18/2026
0.5.0 7 11/18/2026
0.5.0-previe... 5 11/18/2026
0.5.0-previe... 5 11/18/2026
0.5.0-previe... 6 11/18/2026
0.4.9-previe... 6 11/18/2026
0.4.9-previe... 8 11/18/2026
0.4.8 8 11/18/2026
0.4.8-previe... 4 11/18/2026
0.4.8-previe... 5 11/17/2026
0.4.8-previe... (current version) 4 11/17/2026
0.4.8-previe... 6 11/17/2026
0.4.8-previe... 4 11/17/2026
0.4.7 513 11/8/2025
0.4.6 1,144 8/15/2024
0.4.5 8 8/15/2024
0.4.4 16 8/12/2024
0.4.3 9 8/12/2024
0.4.2 8 8/12/2024
0.4.1 6 8/12/2024
0.4.1-previe... 5 8/12/2024
0.4.0-previe... 7 2/2/2024
0.3.0 326 1/25/2024
0.2.0-previe... 8 1/25/2024
Show less