kmwoley / restic-windows-backup

Powershell scripts to run Restic backups on Windows
MIT License
329 stars 68 forks source link

Replace deprecated Send-MailMessage with Send-MailKitMessage #107

Open innovara opened 1 month ago

innovara commented 1 month ago

The Send-MailMessage cmdlet is obsolete. It doesn't guarantee secure connections to SMTP servers. This PR replaces it with Send-MailKitMessage module.

This PR is similar to https://github.com/kmwoley/restic-windows-backup/pull/101 but it is more refined in the sense that it supports port configuration, secure connection, attachments as the original implementation and maintains the existing variables that don't need changing.

kmwoley commented 3 weeks ago

@innovara - thank you for this! I'll review and include in my next release, which is long, long overdue.