8000 Should Send-MailMessage be marked obsolete · Issue #11975 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Should Send-MailMessage be marked obsolete #11975

@FireInWinter

Description

@FireInWinter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0