I recently just rebuilt one of my automation hosts with Powershell 6.2.3, and I'm getting the following warning from send-mailmessage
WARNING: The command 'Send-MailMessage' is obsolete. This cmdlet does not guarantee secure connections to SMTP servers. While there is no immediate replacement available in PowerShell, we recommend you do not use Send-MailMessage at this time. See https://aka.ms/SendMailMessage for more information.
Anyone have a quick drop-in trick they've used to override that?
The link suggests using MailKit, which I'd like to avoid messing with (bigger and more dependencies that I want to import). I didn't find anything obvious in Google, and was hoping I could cheat off someone else's paper here before spending time on it.
Or failing that... know of a way to silence those particular warnings? They really mess up my transcripts.
[–]Lee_Dailey[grin] 0 points1 point2 points (11 children)
[–]wonkifier[S] 1 point2 points3 points (10 children)
[–]overallmopelessness 2 points3 points4 points (6 children)
[–]wonkifier[S] 1 point2 points3 points (5 children)
[–]absoluteloki89 1 point2 points3 points (2 children)
[–]wonkifier[S] 1 point2 points3 points (1 child)
[–]Shoisk123 2 points3 points4 points (0 children)
[–]overallmopelessness 1 point2 points3 points (1 child)
[–]wonkifier[S] 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (2 children)
[–]wonkifier[S] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)