VMware Cloud Community
Shrikant_Gavhan
Enthusiast
Enthusiast
Jump to solution

Unable to send test email message from power cli

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

Thanks and Regards, Shrikant Gavhane
Reply
0 Kudos
1 Solution

Accepted Solutions
Shrikant_Gavhan
Enthusiast
Enthusiast
Jump to solution

Finally found the answer.

Thanks and Regards, Shrikant Gavhane

View solution in original post

Reply
0 Kudos
1 Reply
Shrikant_Gavhan
Enthusiast
Enthusiast
Jump to solution

Finally found the answer.

Thanks and Regards, Shrikant Gavhane
Reply
0 Kudos