Closed JaimeStill closed 5 years ago
Thanks @JaimeStill ! Appreciated!
Other than the Email Edit, I see a lot of changes. If you submit another PR please keep the changes focus on one particular aspect, easier to review :sweat_smile:
I agree with most of your changes except for:
get-date -format o
which includes the timezone.No worries! Apologies for how chaotic the commit was, I'd just pushed up the whole revision I'd made not thinking you may want a PR for it.
Definitely more acquainted with C# / full stack dev than PowerShell, but it's something I enjoy and find fascinating. I've done some really cool stuff building web apps centered around calling PS stuff via Web API. If you'd be interested in anything like that, feel free to shoot me an email (on my profile)!
Per issue #43 ,
Send-MailMessage
is used instead ofSmtpClient
to enable sending emails through Office 365.Other changes include:
EmailPort
parameter to provide toSend-MailMessage
Get-Credential
is called at the top of the Begin region so that credentials can be passed toSend-MailMessage