*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: PowerShell Studio 2019 v5.6.156
32 or 64 bit version of product: 64
Operating system: Windows 10 v1809
32 or 64 bit OS: 64
*** Please add details and screenshots as needed below. ***
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
Not certain this isn't a script problem rather than a PowerShell Studio problem...
I was debugging a script that kept failing at Send-MailMessage:
ERROR: Send-MailMessage : Unable to connect to the remote server
The command is similar to
Code: Select all
Send-MailMessage -From firstname.lastname@example.org ` -To $recipient.Email ` -Subject "Your Windows password is about to expire" ` -BodyAsHtml $body ` -SmtpServer mail1.work.com ` -DeliveryNotificationOption OnFailure
When I switched it off, the script worked perfectly.
Just curious - what caused that?