Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichWeinmann committed Nov 12, 2024
1 parent be07085 commit c201c73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MailDaemon/functions/Invoke-MDDaemon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
Remove-Item $attachment -Force
}
}
# Remove temp deserialized attachments if used
# Remove temp deserialized attachments if used
if ($email.AttachmentsBinary) {
$null = remove-item -Path $tempAttachmentParentDir -Recurse -Force
}
Expand Down
2 changes: 1 addition & 1 deletion MailDaemon/functions/Send-MDMail.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# Add the attachments bytes to the mail object
if (-not $script:mail["AttachmentsBinary"]) {
$script:mail["AttachmentsBinary"] = @()
}
}
foreach ($attachment in $script:mail['Attachments']) {
$script:mail['AttachmentsBinary'] = @($script:mail['AttachmentsBinary']) + @{Name = (split-path -Path $attachment -Leaf); Data = [System.IO.File]::ReadAllBytes($attachment)}
}
Expand Down
8 changes: 7 additions & 1 deletion MailDaemon/functions/Set-MDMail.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function Set-MDMail
.PARAMETER Cc
Additional addresses to keep in the information flow.
.PARAMETER Bcc
Additional addresses to keep silently informed
.PARAMETER Subject
The subject to send the email under.
Expand All @@ -44,6 +47,9 @@ function Set-MDMail
.PARAMETER NotBefore
Do not send this email before this timestamp has come to pass.
.PARAMETER Priority
The priority of the email
.EXAMPLE
PS C:\> Set-MDMail -From '[email protected]' -To '[email protected]' -Subject 'Daily Update Report' -Body $body
Expand Down Expand Up @@ -80,7 +86,7 @@ function Set-MDMail
$RemoveAttachments,

[datetime]
$NotBefore,
$NotBefore,

[MailPriority]
$Priority
Expand Down

0 comments on commit c201c73

Please sign in to comment.