You can modify the email configuration settings of a vCenter Server.

Verify that you are connected to a vCenter Server system.

1

View the current email configuration settings of the vCenter Server from the $srv variable.

Get-AdvancedSettingEntity $srv –Name mail.*
2

Update the SMTP server name and port.

Get-AdvancedSettingEntity $srv  –Name mail.smtp.server | Set-AdvancedSettingValue smtp.vmware.com
Get-AdvancedSettingEntity $srv  –Name mail.smtp.port | Set-AdvancedSettingValue 25