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

Verify that you are connected to a vCenter Server system.


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

Get-AdvancedSettingEntity $srv –Name mail.*

Update the SMTP server name and port.

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