powershell - Need to print content of the text file in email body using BLAT -


my script output can have more 1 fields empty, moved value of "name" txt file below:

select-object -expand name | out-file d:\tmp\test\out.txt 

now need email text present in out.txt , tried below command

blat out.txt -to email@email.com -subject "field missing" -body "field missing" 

with this, getting email but, text present in file not coming via email. please note, dont want attachment in email.

please fix it.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -