2.2 KiB
2.2 KiB
external help file | Module Name | online version | schema |
---|---|---|---|
PWExpireNotification-help.xml | PWExpireNotification | 2.0.0 |
Set-PWEmailBody
SYNOPSIS
This cmdlet is used to configure the email message body in JSON format for configuring the JSON payload to graph
SYNTAX
Set-PWEmailBody [[-Subject] <String>] [[-Importance] <String>] [[-Message] <String>] [[-EmailAddress] <String>]
[<CommonParameters>]
DESCRIPTION
This cmdlet is used to configure the email message body in JSON format for configuring the JSON payload to graph
EXAMPLES
Example 1
PS C:\> Set-PWEmailBody -Subject "Your Password is Expiring in 10 Days" `
-Importance "High" `
-Message "Please change soon" `
-EmailAddress "olduser@mycompany.com"
Prepares the message section of the JSON payload to be submitted to Graph for sending the email message
PARAMETERS
-EmailAddress
Email address to receive the email
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Importance
Set the Importance of the email: High or Low
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Message
The message body
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Subject
Subject line of the email
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
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.