Test HPOVEmailAlert - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Test-HPOVEmailAlert

Test appliance Email Alerting configuration.

SYNTAX

Test-HPOVEmailAlert [-Recipients] <Array>[ [-Subject] <String>][ [-Body] <String>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

This cmdlet will generate a test email message.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? false
Position? 3
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-Body <String>

Provide a custom message body. Can be either a plan text or HTML message.

Aliases None
Required? false
Position? 2
Default value Test email message from HPE OneView appliance.
Accept pipeline input? false
Accept wildcard characters?    False

-Recipients <Array>

Specify the Sender Email Address for the appliance.

Aliases None
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Subject <String>

Provide a custom subject for the email message.

Aliases None
Required? false
Position? 1
Default value This is a test message.
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 (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None. You cannot pipe objects to this cmdlet.

Return Values

System.Management.Automation.PSCustomObject

If successful, returns an object with the test message details.

Examples

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

Test-HPOVEmailAlert -Recipients [email protected]

Generate a test email message to "[email protected]".

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

Test-HPOVEmailAlert -Recipients [email protected].,[email protected] -Subject "This is a test email message."

Generate a test email message to multiple recipients with a custom subject.

Related Links


Top

HPE OneView 4.00 Library

Test-HPOVEmailAlert

Test appliance Email Alerting configuration.

SYNTAX

Test-HPOVEmailAlert [-Recipients] <Array>[ [-Subject] <String>] [-Body] <String>[ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

This cmdlet will generate a test email message.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? false
Position? 3
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-Body <String>

Provide a custom message body. Can be either a plan text or HTML message.

Aliases None
Required? fasle
Position? 2
Default value Test email message from HPE OneView appliance.
Accept pipeline input? false
Accept wildcard characters?    False

-Recipients <Array>

Specify the Sender Email Address for the appliance.

Aliases None
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Subject <String>

Provide a custom subject for the email message.

Aliases None
Required? false
Position? 1
Default value This is a test message.
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 (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None. You cannot pipe objects to this cmdlet.

Return Values

System.Management.Automation.PSCustomObject

If successful, returns an object with the test message details.

Examples

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

Test-HPOVEmailAlert -Recipients [email protected]

Generate a test email message to '[email protected]'.

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

Test-HPOVEmailAlert -Recipients [email protected].,[email protected] -Subject "This is a test email message."

Generate a test email message to multiple recipients with a custom subject.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️