Skip to content

Commit 3d477ac

Browse files
committed
Prep to publish
1 parent cbf4945 commit 3d477ac

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

PSMailKit.psd1

+11-7
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ RequiredAssemblies = @(
7979
# NestedModules = @()
8080

8181
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
82-
FunctionsToExport = '*'
82+
FunctionsToExport = 'Send-MKMailMessage', 'Send-MkMailMerge'
8383

8484
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
85-
CmdletsToExport = '*'
85+
# CmdletsToExport = '*'
8686

8787
# Variables to export from this module
88-
VariablesToExport = '*'
88+
# VariablesToExport = '*'
8989

9090
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
91-
AliasesToExport = '*'
91+
# AliasesToExport = '*'
9292

9393
# DSC resources to export from this module
9494
# DscResourcesToExport = @()
@@ -105,13 +105,17 @@ PrivateData = @{
105105
PSData = @{
106106

107107
# Tags applied to this module. These help with module discovery in online galleries.
108-
# Tags = @()
108+
Tags = @(
109+
'MailKit', 'MailMerge', 'Mail', 'Email', 'SMTP', 'IMAP', 'Send', 'Receive', 'Message', 'Attachment',
110+
'MIME', 'Multipart', 'HTML', 'Text', 'Body', 'Subject', 'From', 'To', 'CC', 'BCC', 'ReplyTo',
111+
'SMIME', 'Signed', 'Encrypted', 'PSEdition_Desktop', 'PSEdition_Core', 'Windows'
112+
)
109113

110114
# A URL to the license for this module.
111-
# LicenseUri = ''
115+
LicenseUri = 'https://github.com/dbaileyut/PSMailKit/blob/main/LICENSE.txt'
112116

113117
# A URL to the main website for this project.
114-
# ProjectUri = ''
118+
ProjectUri = 'https://github.com/dbaileyut/PSMailKit'
115119

116120
# A URL to an icon representing this module.
117121
# IconUri = ''

build/Publish-ToGallery.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$ModuleRoot = (Get-Item (Join-Path -Path $PSScriptRoot '..')).FullName
2+
Invoke-ScriptAnalyzer -Recurse -Severity Warning -Path $ModuleRoot

functions/Send-MKMailMessage.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function Send-MKMailMessage {
261261
if (Test-Path $Attachment -PathType Leaf) {
262262
$FullPath = (Get-Item $Attachment).FullName
263263
try {
264-
$MimeAttachment = $Builder.Attachments.Add($FullPath)
264+
$Builder.Attachments.Add($FullPath) | Out-Null
265265
} catch {
266266
Write-Error "Failed to add attachment `"$Attachment`" to message body object. $_"
267267
$AttachmentFails += $Attachment

0 commit comments

Comments
 (0)