Like Us
Plus One
Follow Us
Search
 Author Jeff Jones  Views 982 View Original Article

You probably use “Send-MailMessage” across many scripts.  I sure do. Why repeat configuration in every script?   That’s a headache to update and manage long term.   I suggest keeping that configuration in Machine Environment Variables.   These save globally and are visible to any downstream code including: PowerShell Dot Net IIS Windows Service Windows Form .. and more Below is an example using “$env:smtp” to send email from PowerShell.   Now all of…
View Original Article

Recent Articles from @SPJeff