< Back

Send-AADIntEASMessage

Fri Jan 10, 2020 5:59 pm

NAME Send-AADIntEASMessage



SYNOPSIS

Sends mail message using ActiveSync





SYNTAX

Send-AADIntEASMessage -Credentials <PSCredential> -Recipient <String> -Subject <String> -Message <String>

-DeviceId <String> [-DeviceType <String>] [-DeviceOS <String>] [<CommonParameters>]



Send-AADIntEASMessage -AccessToken <String> -Recipient <String> -Subject <String> -Message <String> -DeviceId

<String> [-DeviceType <String>] [-DeviceOS <String>] [<CommonParameters>]





DESCRIPTION

Sends mail using ActiveSync using the account of given credentials.

Supports both Basic and Modern Authentication.

Message MUST be html (or plaintext) and SHOULD be Base64 encoded (if not, it's automatically converted).





PARAMETERS

-Credentials <PSCredential>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AccessToken <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Recipient <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Subject <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Message <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DeviceId <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DeviceType <String>



Required? false

Position? named

Default value Android

Accept pipeline input? false

Accept wildcard characters? false



-DeviceOS <String>



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



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



PS C:\\>$Cred=Get-Credential



PS C:\\>Send-AADIntEASMessage -Credentials $Cred -DeviceId androidc481040056 -DeviceType Android -Recipient

someone@company.com -Subject "An email" -Message "This is a message!"









-------------------------- EXAMPLE 2 --------------------------



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



PS C:\\>Send-AADIntEASMessage -AccessToken $At -DeviceId androidc481040056 -DeviceType Android -Recipient

someone@company.com -Subject "An email" -Message "This is a message!"











RELATED LINKS