< Back

Send-AADIntOutlookMessage

Fri Jan 10, 2020 6:00 pm

NAME Send-AADIntOutlookMessage



SYNOPSIS

Sends mail message using Outlook REST API





SYNTAX

Send-AADIntOutlookMessage [-AccessToken] <String> [-Recipient] <String> [-Subject] <String> [-Message] <String>

[-SaveToSentItems] [<CommonParameters>]





DESCRIPTION

Sends mail using Outlook REST API using the account of given credentials.

Message MUST be html (or plaintext).





PARAMETERS

-AccessToken <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Recipient <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Subject <String>



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Message <String>



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SaveToSentItems [<SwitchParameter>]



Required? false

Position? named

Default value False

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$At=Get-AADIntAccessTokenForEXO



PS C:\\>Send-AADIntOutlookMessage -AccessToken $At -Recipient someone@company.com -Subject "An email" -Message

"This is a message!"











RELATED LINKS