Main | Contact | Blog | Documentation

PowerShell Framework

The project dedicated to empowering your PowerShell scripting.

Send-MDMail

SYNOPSIS

Queues current email for delivery.

SYNTAX

Send-MDMail [-TaskName] <String> [<CommonParameters>]

DESCRIPTION

Uses the data prepared by Set-MDMail or Add-MDMailContent and queues the email for delivery.

EXAMPLES

EXAMPLE 1

Send-MDMail -TaskName "Logrotate"

Queues the currently prepared email under the name “Logrotate”

PARAMETERS

-TaskName

Name of the task that is sending the email. Used in the name of the file used to queue messages in order to reduce likelyhood of accidental clash.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES