Skip to main content
SnapCenter 6.0 cmdlets

Set-SmSMTPServer

Contributors

Specifies the SMTP server to use for sending data protection job reports to yourself or to others.

Syntax

Set-SmSMTPServer [-SMTPServerName]  <String>  [-EmailFrom]  <String>  [-EmailTo]  <String>  [-IsSendEmail]  <>  [-EmailSubject]  <String>

Detailed Description

Specifies the SMTP server to use for sending data protection job reports to yourself or to others. The settings are applied globally for any SnapCenter job for which you configure email notification.

Parameters

Name Description Required? Pipeline Input Default Value

SMTPServerName

Specifies the name of the SMTP server.

true

true (ByPropertyName)

EmailFrom

Specifies the sender's email address. This parameter is required when you configure an SMTP server.

true

true (ByPropertyName)

EmailTo

Specifies the recipient's email address. This parameter is required when you configure an SMTP server.

true

true (ByPropertyName)

IsSendEmail

When specified, sends email to the SMTP server specified. This parameter is optional.

false

false

EmailSubject

Specifies the subject of the email. This parameter is optional.

false

false

Examples

Example 1

 Set-SmSMTPServer smtp.gdl.englab.netapp.com -EmailFrom zhimao@netapp.com -EmailTo zhimao@netapp.com -IsSendEmail -EmailSubject Hello