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?
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?
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
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 04:03 Uhr
1 Kommentar
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
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