PWExpireNotification/docs/Set-PWEmailMessagePayload.md

2.0 KiB

external help file Module Name online version schema
PWExpireNotification-help.xml PWExpireNotification 2.0.0

Set-PWEmailMessagePayload

SYNOPSIS

Creates the full message paylod of to send to Graph API

SYNTAX

Message

Set-PWEmailMessagePayload -TextToAdd <String> -ADAccount <PSObject> -Signature <PSObject> [<CommonParameters>]

Subject

Set-PWEmailMessagePayload -ADAccount <PSObject> -Subject <String> [<CommonParameters>]

DESCRIPTION

Creates the full message paylod of to send to Graph API

EXAMPLES

Example 1

PS C:\> Set-PWEmailMessagePayload -TextToAdd $TextToAdd -ADAccount $ADAccount -Signature $Signature

Prepares the json payload for graph

PARAMETERS

-ADAccount

The account that is expiring

Type: PSObject
Parameter Sets: (All)
Aliases:

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

-Signature

Signature to be used within the email

Type: PSObject
Parameter Sets: Message
Aliases:

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

-Subject

The email subject

Type: String
Parameter Sets: Subject
Aliases:

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

-TextToAdd

Any additional text to add to the email body

Type: String
Parameter Sets: Message
Aliases:

Required: True
Position: Named
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

None

OUTPUTS

System.Object

NOTES