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.
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.