Could someone give me a hint, how I use a PowerShell script to send an email through my gmail account without being prompted for my credentials every time and *without saving my password anywhere in plain text?
Background: I’m mointoring my duplicacy logs for errors using select-string
and would like to send an email if an error is found. I have managed to send the email manually, but it only works if I enter my credentials manually every time.