-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Version: PowerShell 7.0rc3
OS: AWS Linux
Currently Send-MailMessage is marked obsolete, but I don't think it should be. The API behind it should be replaced eventually, but the site that gives the reasons why it should be used, also include a reason what it would still be useful for.
https://github.com/dotnet/platform-compat/blob/master/docs/DE0005.md
It's great for one off emails from tools, but doesn't scale to modern requirements of the protocol.
My reasoning is that the majority of use of Send-MailMessage is exactly the "one off emails from tools" they mention. If someone has some statistics, that would be great, but my guess is that 95% of use of Send-MailMessage would fall under that category. It would be obsolete if someone is using it for sending millions of emails, but I doubt if there are many people doing that.
I would suggest having it marked in some way in the source code, but let's not bug users about a problem that isn't a real problem.