Send-MgBetaUserMail
Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include an attachment and use a mention to call out another user in the new message. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here.
Note
To view the v1.0 release of this cmdlet, view Send-MgUserMail
Syntax
Send-MgBetaUserMail
-UserId <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-Message <IMicrosoftGraphMessage>]
[-SaveToSentItems]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Send-MgBetaUserMail
-UserId <String>
-BodyParameter <IComponentsVsh1S1RequestbodiesSendmailrequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Send-MgBetaUserMail
-InputObject <IUsersActionsIdentity>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-Message <IMicrosoftGraphMessage>]
[-SaveToSentItems]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Send-MgBetaUserMail
-InputObject <IUsersActionsIdentity>
-BodyParameter <IComponentsVsh1S1RequestbodiesSendmailrequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include an attachment and use a mention to call out another user in the new message. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here.
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Mail.Send | Not available. |
Delegated (personal Microsoft account) | Mail.Send | Not available. |
Application | Mail.Send | Not available. |
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.Beta.Users.Actions
$params = @{
message = @{
subject = "Meet for lunch?"
body = @{
contentType = "Text"
content = "The new cafeteria is open."
}
toRecipients = @(
@{
emailAddress = @{
address = "[email protected]"
}
}
)
ccRecipients = @(
@{
emailAddress = @{
address = "[email protected]"
}
}
)
}
saveToSentItems = "false"
}
# A UPN can also be used as -UserId.
Send-MgBetaUserMail -UserId $userId -BodyParameter $params
This example shows how to use the Send-MgBetaUserMail Cmdlet.
Example 2: Code snippet
Import-Module Microsoft.Graph.Beta.Users.Actions
$params = @{
message = @{
subject = "Project kickoff"
toRecipients = @(
@{
emailAddress = @{
name = "Samantha Booth"
address = "[email protected]"
}
}
)
mentions = @(
@{
mentioned = @{
name = "Dana Swope"
address = "[email protected]"
}
}
)
}
}
# A UPN can also be used as -UserId.
Send-MgBetaUserMail -UserId $userId -BodyParameter $params
This example shows how to use the Send-MgBetaUserMail Cmdlet.
Example 3: Code snippet
Import-Module Microsoft.Graph.Beta.Users.Actions
$params = @{
message = @{
subject = "9/9/2018: concert"
body = @{
contentType = "HTML"
content = "The group represents Nevada."
}
toRecipients = @(
@{
emailAddress = @{
address = "[email protected]"
}
}
)
internetMessageHeaders = @(
@{
name = "x-custom-header-group-name"
value = "Nevada"
}
@{
name = "x-custom-header-group-id"
value = "NV001"
}
)
}
}
# A UPN can also be used as -UserId.
Send-MgBetaUserMail -UserId $userId -BodyParameter $params
This example shows how to use the Send-MgBetaUserMail Cmdlet.
Example 4: Code snippet
Import-Module Microsoft.Graph.Beta.Users.Actions
$params = @{
message = @{
subject = "Meet for lunch?"
body = @{
contentType = "Text"
content = "The new cafeteria is open."
}
toRecipients = @(
@{
emailAddress = @{
address = "[email protected]"
}
}
)
attachments = @(
@{
"@odata.type" = "#microsoft.graph.fileAttachment"
name = "attachment.txt"
contentType = "text/plain"
contentBytes = "SGVsbG8gV29ybGQh"
}
)
}
}
# A UPN can also be used as -UserId.
Send-MgBetaUserMail -UserId $userId -BodyParameter $params
This example shows how to use the Send-MgBetaUserMail Cmdlet.
Parameters
-AdditionalProperties
Additional Parameters
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BodyParameter
. To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Type: | IComponentsVsh1S1RequestbodiesSendmailrequestbodyContentApplicationJsonSchema |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Headers
Optional headers that will be added to the request.
Type: | IDictionary |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IUsersActionsIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Message
message To construct, see NOTES section for MESSAGE properties and create a hash table.
Type: | IMicrosoftGraphMessage |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
Returns true when the command succeeds
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Type: | String |
Aliases: | RHV |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SaveToSentItems
.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserId
The unique identifier of user
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Graph.Beta.PowerShell.Models.IComponentsVsh1S1RequestbodiesSendmailrequestbodyContentApplicationJsonSchema
Microsoft.Graph.Beta.PowerShell.Models.IUsersActionsIdentity
System.Collections.IDictionary
Outputs
System.Boolean
Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
BODYPARAMETER <IComponentsVsh1S1RequestbodiesSendmailrequestbodyContentApplicationJsonSchema>
: .
[(Any) <Object>]
: This indicates any property can be added to this object.[Message <IMicrosoftGraphMessage>]
: message[(Any) <Object>]
: This indicates any property can be added to this object.[Categories <String-
[]>]
: The categories associated with the item.[ChangeKey <String>]
: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.[CreatedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Id <String>]
: The unique identifier for an entity. Read-only.[Attachments <IMicrosoftGraphAttachment-
[]>]
: The fileAttachment and itemAttachment attachments for the message.[Id <String>]
: The unique identifier for an entity. Read-only.[ContentType <String>]
: The MIME type.[IsInline <Boolean?>]
: true if the attachment is an inline attachment; otherwise, false.[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Name <String>]
: The display name of the attachment. This does not need to be the actual file name.[Size <Int32?>]
: The length of the attachment in bytes.
[BccRecipients <IMicrosoftGraphRecipient-
[]>]
: The Bcc: recipients for the message.[EmailAddress <IMicrosoftGraphEmailAddress>]
: emailAddress[(Any) <Object>]
: This indicates any property can be added to this object.[Address <String>]
: The email address of an entity instance.[Name <String>]
: The display name of an entity instance.
[Body <IMicrosoftGraphItemBody>]
: itemBody[(Any) <Object>]
: This indicates any property can be added to this object.[Content <String>]
: The content of the item.[ContentType <String>]
: bodyType
[BodyPreview <String>]
: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well.[CcRecipients <IMicrosoftGraphRecipient-
[]>]
: The Cc: recipients for the message.[ConversationId <String>]
: The ID of the conversation the email belongs to.[ConversationIndex <Byte-
[]>]
: Indicates the position of the message within the conversation.[Extensions <IMicrosoftGraphExtension-
[]>]
: The collection of open extensions defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.
[Flag <IMicrosoftGraphFollowupFlag>]
: followupFlag[(Any) <Object>]
: This indicates any property can be added to this object.[CompletedDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[(Any) <Object>]
: This indicates any property can be added to this object.[DateTime <String>]
: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'.[TimeZone <String>]
: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values.
[DueDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[FlagStatus <String>]
: followupFlagStatus[StartDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone
[From <IMicrosoftGraphRecipient>]
: recipient[HasAttachments <Boolean?>]
: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .[Importance <String>]
: importance[InferenceClassification <String>]
: inferenceClassificationType[InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader-
[]>]
: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.[Name <String>]
: Represents the key in a key-value pair.[Value <String>]
: The value in a key-value pair.
[InternetMessageId <String>]
: The message ID in the format specified by RFC5322. Updatable only if isDraft is true.[IsDeliveryReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[IsDraft <Boolean?>]
: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.[IsRead <Boolean?>]
: Indicates whether the message has been read.[IsReadReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[Mentions <IMicrosoftGraphMention-
[]>]
: A collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property.[Id <String>]
: The unique identifier for an entity. Read-only.[Application <String>]
: The name of the application where the mention is created. Optional. Not used and defaulted as null for message.[ClientReference <String>]
: A unique identifier that represents a parent of the resource instance. Optional. Not used and defaulted as null for message.[CreatedBy <IMicrosoftGraphEmailAddress>]
: emailAddress[CreatedDateTime <DateTime?>]
: The date and time that the mention is created on the client.[DeepLink <String>]
: A deep web link to the context of the mention in the resource instance. Optional. Not used and defaulted as null for message.[MentionText <String>]
: Optional. Not used and defaulted as null for message. To get the mentions in a message, see the bodyPreview property of the message instead.[Mentioned <IMicrosoftGraphEmailAddress>]
: emailAddress[ServerCreatedDateTime <DateTime?>]
: The date and time that the mention is created on the server. Optional. Not used and defaulted as null for message.
[MentionsPreview <IMicrosoftGraphMentionsPreview>]
: mentionsPreview[(Any) <Object>]
: This indicates any property can be added to this object.[IsMentioned <Boolean?>]
: True if the signed-in user is mentioned in the parent resource instance. Read-only. Supports filter.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty-
[]>]
: The collection of multi-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String-
[]>]
: A collection of property values.
[ParentFolderId <String>]
: The unique identifier for the message's parent mailFolder.[ReceivedDateTime <DateTime?>]
: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[ReplyTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to use when replying.[Sender <IMicrosoftGraphRecipient>]
: recipient[SentDateTime <DateTime?>]
: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty-
[]>]
: The collection of single-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String>]
: A property value.
[Subject <String>]
: The subject of the message.[ToRecipients <IMicrosoftGraphRecipient-
[]>]
: The To: recipients for the message.[UniqueBody <IMicrosoftGraphItemBody>]
: itemBody[UnsubscribeData <String-
[]>]
: The valid entries parsed from the List-Unsubscribe header. This is the data for the mail command in the List-Unsubscribe header if UnsubscribeEnabled property is true.[UnsubscribeEnabled <Boolean?>]
: Indicates whether the message is enabled for unsubscribe. Its valueTrue if the list-Unsubscribe header conforms to rfc-2369.[WebLink <String>]
: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame.
[SaveToSentItems <Boolean?>]
:
INPUTOBJECT <IUsersActionsIdentity>
: Identity Parameter
[AccessReviewInstanceId <String>]
: The unique identifier of accessReviewInstance[AccessReviewStageId <String>]
: The unique identifier of accessReviewStage[AppLogCollectionRequestId <String>]
: The unique identifier of appLogCollectionRequest[AuthenticationMethodId <String>]
: The unique identifier of authenticationMethod[CalendarId <String>]
: The unique identifier of calendar[ChatId <String>]
: The unique identifier of chat[ChatMessageId <String>]
: The unique identifier of chatMessage[ChatMessageId1 <String>]
: The unique identifier of chatMessage[CloudPcId <String>]
: The unique identifier of cloudPC[ContactFolderId <String>]
: The unique identifier of contactFolder[ContactFolderId1 <String>]
: The unique identifier of contactFolder[ContactId <String>]
: The unique identifier of contact[ContentTypeId <String>]
: The unique identifier of contentType[DeviceEnrollmentConfigurationId <String>]
: The unique identifier of deviceEnrollmentConfiguration[DeviceLogCollectionResponseId <String>]
: The unique identifier of deviceLogCollectionResponse[DocumentSetVersionId <String>]
: The unique identifier of documentSetVersion[DriveId <String>]
: The unique identifier of drive[DriveItemId <String>]
: The unique identifier of driveItem[DriveItemVersionId <String>]
: The unique identifier of driveItemVersion[EventId <String>]
: The unique identifier of event[EventId1 <String>]
: The unique identifier of event[JoinWebUrl <String>]
: Alternate key of onlineMeeting[ListItemId <String>]
: The unique identifier of listItem[ListItemVersionId <String>]
: The unique identifier of listItemVersion[MailFolderId <String>]
: The unique identifier of mailFolder[MailFolderId1 <String>]
: The unique identifier of mailFolder[ManagedDeviceId <String>]
: The unique identifier of managedDevice[MessageId <String>]
: The unique identifier of message[MobileAppTroubleshootingEventId <String>]
: The unique identifier of mobileAppTroubleshootingEvent[NotebookId <String>]
: The unique identifier of notebook[OnenotePageId <String>]
: The unique identifier of onenotePage[OnenoteSectionId <String>]
: The unique identifier of onenoteSection[OnlineMeetingId <String>]
: The unique identifier of onlineMeeting[OutlookTaskFolderId <String>]
: The unique identifier of outlookTaskFolder[OutlookTaskGroupId <String>]
: The unique identifier of outlookTaskGroup[OutlookTaskId <String>]
: The unique identifier of outlookTask[PermissionId <String>]
: The unique identifier of permission[PlannerPlanId <String>]
: The unique identifier of plannerPlan[SensitivityLabelId <String>]
: The unique identifier of sensitivityLabel[SubscriptionId <String>]
: The unique identifier of subscription[TeamsAppInstallationId <String>]
: The unique identifier of teamsAppInstallation[TodoTaskId <String>]
: The unique identifier of todoTask[TodoTaskListId <String>]
: The unique identifier of todoTaskList[UserId <String>]
: The unique identifier of user
MESSAGE <IMicrosoftGraphMessage>
: message
[(Any) <Object>]
: This indicates any property can be added to this object.[Categories <String-
[]>]
: The categories associated with the item.[ChangeKey <String>]
: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.[CreatedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Id <String>]
: The unique identifier for an entity. Read-only.[Attachments <IMicrosoftGraphAttachment-
[]>]
: The fileAttachment and itemAttachment attachments for the message.[Id <String>]
: The unique identifier for an entity. Read-only.[ContentType <String>]
: The MIME type.[IsInline <Boolean?>]
: true if the attachment is an inline attachment; otherwise, false.[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Name <String>]
: The display name of the attachment. This does not need to be the actual file name.[Size <Int32?>]
: The length of the attachment in bytes.
[BccRecipients <IMicrosoftGraphRecipient-
[]>]
: The Bcc: recipients for the message.[EmailAddress <IMicrosoftGraphEmailAddress>]
: emailAddress[(Any) <Object>]
: This indicates any property can be added to this object.[Address <String>]
: The email address of an entity instance.[Name <String>]
: The display name of an entity instance.
[Body <IMicrosoftGraphItemBody>]
: itemBody[(Any) <Object>]
: This indicates any property can be added to this object.[Content <String>]
: The content of the item.[ContentType <String>]
: bodyType
[BodyPreview <String>]
: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well.[CcRecipients <IMicrosoftGraphRecipient-
[]>]
: The Cc: recipients for the message.[ConversationId <String>]
: The ID of the conversation the email belongs to.[ConversationIndex <Byte-
[]>]
: Indicates the position of the message within the conversation.[Extensions <IMicrosoftGraphExtension-
[]>]
: The collection of open extensions defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.
[Flag <IMicrosoftGraphFollowupFlag>]
: followupFlag[(Any) <Object>]
: This indicates any property can be added to this object.[CompletedDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[(Any) <Object>]
: This indicates any property can be added to this object.[DateTime <String>]
: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'.[TimeZone <String>]
: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values.
[DueDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[FlagStatus <String>]
: followupFlagStatus[StartDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone
[From <IMicrosoftGraphRecipient>]
: recipient[HasAttachments <Boolean?>]
: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .[Importance <String>]
: importance[InferenceClassification <String>]
: inferenceClassificationType[InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader-
[]>]
: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.[Name <String>]
: Represents the key in a key-value pair.[Value <String>]
: The value in a key-value pair.
[InternetMessageId <String>]
: The message ID in the format specified by RFC5322. Updatable only if isDraft is true.[IsDeliveryReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[IsDraft <Boolean?>]
: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.[IsRead <Boolean?>]
: Indicates whether the message has been read.[IsReadReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[Mentions <IMicrosoftGraphMention-
[]>]
: A collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property.[Id <String>]
: The unique identifier for an entity. Read-only.[Application <String>]
: The name of the application where the mention is created. Optional. Not used and defaulted as null for message.[ClientReference <String>]
: A unique identifier that represents a parent of the resource instance. Optional. Not used and defaulted as null for message.[CreatedBy <IMicrosoftGraphEmailAddress>]
: emailAddress[CreatedDateTime <DateTime?>]
: The date and time that the mention is created on the client.[DeepLink <String>]
: A deep web link to the context of the mention in the resource instance. Optional. Not used and defaulted as null for message.[MentionText <String>]
: Optional. Not used and defaulted as null for message. To get the mentions in a message, see the bodyPreview property of the message instead.[Mentioned <IMicrosoftGraphEmailAddress>]
: emailAddress[ServerCreatedDateTime <DateTime?>]
: The date and time that the mention is created on the server. Optional. Not used and defaulted as null for message.
[MentionsPreview <IMicrosoftGraphMentionsPreview>]
: mentionsPreview[(Any) <Object>]
: This indicates any property can be added to this object.[IsMentioned <Boolean?>]
: True if the signed-in user is mentioned in the parent resource instance. Read-only. Supports filter.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty-
[]>]
: The collection of multi-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String-
[]>]
: A collection of property values.
[ParentFolderId <String>]
: The unique identifier for the message's parent mailFolder.[ReceivedDateTime <DateTime?>]
: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[ReplyTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to use when replying.[Sender <IMicrosoftGraphRecipient>]
: recipient[SentDateTime <DateTime?>]
: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty-
[]>]
: The collection of single-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String>]
: A property value.
[Subject <String>]
: The subject of the message.[ToRecipients <IMicrosoftGraphRecipient-
[]>]
: The To: recipients for the message.[UniqueBody <IMicrosoftGraphItemBody>]
: itemBody[UnsubscribeData <String-
[]>]
: The valid entries parsed from the List-Unsubscribe header. This is the data for the mail command in the List-Unsubscribe header if UnsubscribeEnabled property is true.[UnsubscribeEnabled <Boolean?>]
: Indicates whether the message is enabled for unsubscribe. Its valueTrue if the list-Unsubscribe header conforms to rfc-2369.[WebLink <String>]
: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame.
RELATED LINKS
https://learn.microsoft.com/powershell/module/microsoft.graph.beta.users.actions/send-mgbetausermail
https://learn.microsoft.com/graph/api/user-sendmail?view=graph-rest-beta