Hi All,
I am trying to send a test email message to my office ID for testing purpose but unable to do so. I am trying this operation on power cli. vCenter in my environment is already configured for SMTP alerts.
Below is the command and error message I am getting.
PowerCLI C:\> Send-MailMessage -Subject "test" -From "xxxxxxxxx@xxxxxxx.com" -To "xxxxxxxxxxxx@xxxxxxxx.com" -Body "testing" -SmtpServer xxx
xxx.xxx.xx
Send-MailMessage : Service not available, closing transmission channel. The server response was: 4.3.2 Service not available, closing transmission channel
At line:1 char:17
+ Send-MailMessage <<<< -Subject "test" -From "xxxxxxxxx@xxxxxxx.com" -To "xxxxxxxxx@xxxxxxx.com" -Body "testing" -SmtpServer xxx.xxx.xxx.xx
+ CategoryInfo : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-MailMessage], SmtpException
+ FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage
Please assist.
Thanks and Regards,
Shrikant
Finally found the answer.