Hello
As send-mailmessage is not recommended in powershell anymore you could use a third party like Mail Slurp. Then run the PowerShell script using task scheduler
- https://www.mailslurp.com/blog/powershell-send-email/
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7.4
- https://sid-500.com/2022/08/17/how-to-include-your-powershell-7-scripts-in-task-scheduler/
Hope this helps.
Russell
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.