Send mail script – PowerShell

Send mail script – PowerShell

Today I will share with you short function, which send mails. It could be usable for example to sending reports or monitoring notifications. In this script I am using office 365 mailbox cofiguration.

In this case $bodymail is a table with disk space reports converted to html by using below command.

To send email we need to execute function with email address as a parameter.

Komentarze

Nie ma jeszcze komentarzy. Może zaczniesz dyskusję?

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *