stefanmuc
Goto Top

PowerShell command Send-MailMessage is obsolete - nur Github-Projekt MailKit als Ersatz?

Hallo,

ich nutze in einem Powershell-Script den Befehl Send-MailMessage um eine Mail per SMTP Auth über ein Postfach zu versenden.

Seit einigen Wochen kommt nun nach dem Versand die Fehlermeldung:
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.


Im Link wird das Github-Projekt MailKit https://github.com/jstedfast/MailKit empfohlen.

Gibt es noch andere Alternativen?

Content-ID: 671986

Url: https://administrator.de/forum/powershell-command-send-mailmessage-is-obsolete-nur-github-projekt-mailkit-als-ersatz-671986.html

Ausgedruckt am: 17.03.2025 um 01:03 Uhr

DivideByZero
DivideByZero 16.03.2025 um 23:00:49 Uhr
Goto Top
Moin,

Du kannst natürlich alternativ commandline tools nutzen, wie z.B. CMail. Ist robust, zuverlässig, halt immer nur das Problem des Passwort-Handlings.

Gruß

DivideByZero