< Back
Add-MgaMailMessageReply
Post
NAME Add-MgaMailMessageReply
SYNOPSIS
Create reply (all) message(s) in Exchange Online using the graph api.
SYNTAX
Add-MgaMailMessageReply [-Message] <MessageParameter[]> [-ReplyAll] [-User <String>] [-Token <AzureAccessToken>]
[-WhatIf] [-Confirm] [<CommonParameters>]
Add-MgaMailMessageReply [-Message] <MessageParameter[]> -Comment <String> [-ReplyAll] [-User <String>] [-Token
<AzureAccessToken>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Create reply (all) message(s) and save it as draft message(s).
Alternatively, the command can directly send the reply (all) by specifing a text
The message is then saved in the Sent Items folder.
PARAMETERS
-Message <MessageParameter[]>
Carrier object for Pipeline input.
This can be the id of the message or a message object passed in.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Comment <String>
The body of the message.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ReplyAll [<SwitchParameter>]
Creates a reply all message.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-User <String>
The user-account to access. Defaults to the main user connected as.
Can be any primary email name of any user the connected token has access to.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Token <AzureAccessToken>
The token representing an established connection to the Microsoft Graph Api.
Can be created by using New-MgaAccessToken.
Can be omitted if a connection has been registered using the -Register parameter on New-MgaAccessToken.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Outputs the token to the console
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
If this switch is enabled, no actions are performed but informational messages will be displayed that explain
what would happen if the command were to run.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
If this switch is enabled, you will be prompted for confirmation before executing any operations that change
state.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
MSGraph.Exchange.Mail.Message
NOTES
For addiontional information about Microsoft Graph API go to:
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$mail | Add-MgaMailMessageReply
Create reply message(s) for messages in variable $mail.
also possible:
PS C:\\> Add-MgaMailMessageReply -Message $mail
The variable $mail can be represent:
PS C:\\> $mail = Get-MgaMailMessage -Subject "Important mail"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$mail | Add-MgaMailMessageReply -Comment 'Reply for confirmation to your message.'
This one directly send reply message(s) for messages from variable $mail.
The message(s) is saved in the sendItems folder
The variable $mail can be represent:
PS C:\\> $mail = Get-MgaMailMessage -Subject "Important mail"
RELATED LINKS
SYNOPSIS
Create reply (all) message(s) in Exchange Online using the graph api.
SYNTAX
Add-MgaMailMessageReply [-Message] <MessageParameter[]> [-ReplyAll] [-User <String>] [-Token <AzureAccessToken>]
[-WhatIf] [-Confirm] [<CommonParameters>]
Add-MgaMailMessageReply [-Message] <MessageParameter[]> -Comment <String> [-ReplyAll] [-User <String>] [-Token
<AzureAccessToken>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Create reply (all) message(s) and save it as draft message(s).
Alternatively, the command can directly send the reply (all) by specifing a text
The message is then saved in the Sent Items folder.
PARAMETERS
-Message <MessageParameter[]>
Carrier object for Pipeline input.
This can be the id of the message or a message object passed in.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Comment <String>
The body of the message.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ReplyAll [<SwitchParameter>]
Creates a reply all message.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-User <String>
The user-account to access. Defaults to the main user connected as.
Can be any primary email name of any user the connected token has access to.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Token <AzureAccessToken>
The token representing an established connection to the Microsoft Graph Api.
Can be created by using New-MgaAccessToken.
Can be omitted if a connection has been registered using the -Register parameter on New-MgaAccessToken.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Outputs the token to the console
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
If this switch is enabled, no actions are performed but informational messages will be displayed that explain
what would happen if the command were to run.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
If this switch is enabled, you will be prompted for confirmation before executing any operations that change
state.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
MSGraph.Exchange.Mail.Message
NOTES
For addiontional information about Microsoft Graph API go to:
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$mail | Add-MgaMailMessageReply
Create reply message(s) for messages in variable $mail.
also possible:
PS C:\\> Add-MgaMailMessageReply -Message $mail
The variable $mail can be represent:
PS C:\\> $mail = Get-MgaMailMessage -Subject "Important mail"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$mail | Add-MgaMailMessageReply -Comment 'Reply for confirmation to your message.'
This one directly send reply message(s) for messages from variable $mail.
The message(s) is saved in the sendItems folder
The variable $mail can be represent:
PS C:\\> $mail = Get-MgaMailMessage -Subject "Important mail"
RELATED LINKS