Skip to content

Commit c201c73

Browse files
test fixes
1 parent be07085 commit c201c73

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

MailDaemon/functions/Invoke-MDDaemon.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
Remove-Item $attachment -Force
9292
}
9393
}
94-
# Remove temp deserialized attachments if used
94+
# Remove temp deserialized attachments if used
9595
if ($email.AttachmentsBinary) {
9696
$null = remove-item -Path $tempAttachmentParentDir -Recurse -Force
9797
}

MailDaemon/functions/Send-MDMail.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
# Add the attachments bytes to the mail object
5151
if (-not $script:mail["AttachmentsBinary"]) {
5252
$script:mail["AttachmentsBinary"] = @()
53-
}
53+
}
5454
foreach ($attachment in $script:mail['Attachments']) {
5555
$script:mail['AttachmentsBinary'] = @($script:mail['AttachmentsBinary']) + @{Name = (split-path -Path $attachment -Leaf); Data = [System.IO.File]::ReadAllBytes($attachment)}
5656
}

MailDaemon/functions/Set-MDMail.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ function Set-MDMail
2222
.PARAMETER Cc
2323
Additional addresses to keep in the information flow.
2424
25+
.PARAMETER Bcc
26+
Additional addresses to keep silently informed
27+
2528
.PARAMETER Subject
2629
The subject to send the email under.
2730
@@ -44,6 +47,9 @@ function Set-MDMail
4447
.PARAMETER NotBefore
4548
Do not send this email before this timestamp has come to pass.
4649
50+
.PARAMETER Priority
51+
The priority of the email
52+
4753
.EXAMPLE
4854
PS C:\> Set-MDMail -From 'script@contoso.com' -To 'support@contoso.com' -Subject 'Daily Update Report' -Body $body
4955
@@ -80,7 +86,7 @@ function Set-MDMail
8086
$RemoveAttachments,
8187

8288
[datetime]
83-
$NotBefore,
89+
$NotBefore,
8490

8591
[MailPriority]
8692
$Priority

0 commit comments

Comments
 (0)