Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Get the current SMTP server and email alert configuration from an HPE OneView appliance.Syntax
Description
Get-OVSMTPConfig retrieves the SMTP email notification settings configured on the appliance. The returned object contains the mail server hostname, port, connection security mode, sender address, and the current state of alert email notifications.
This cmdlet is typically used to review the current settings before making changes with Set-OVSmtpConfig, or to confirm that email alerting is enabled after configuration.
Parameters
Specify one or more appliance connection objects or names. Defaults to the default connection in
$ConnectedSessions.Examples
Retrieve the SMTP configuration from the default appliance
Retrieve SMTP configuration from a named appliance connection
Check whether alert email notifications are enabled
Retrieve SMTP config from multiple appliances
Output
HPEOneview.Appliance.SmtpConfiguration
Key properties of the returned object:
| Property | Type | Description |
|---|---|---|
smtpServer | String | Hostname or IP address of the SMTP server |
smtpPort | Int | TCP port used for SMTP connections |
smtpProtocol | String | Connection security mode (None, TLS, StartTls) |
senderEmailAddress | String | From address used for outbound alert emails |
alertEmailEnabled | Boolean | Whether email alerting is globally enabled |
alertEmailFilters | Array | List of defined email alert filter rules |
ApplianceConnection | Object | Appliance the configuration was retrieved from |
Related cmdlets
- Set-OVSmtpConfig
- Get-OVSmtpAlertEmailFilter
- Add-OVSmtpAlertEmailFilter — see source repository for cmdlet usage