# Define the txt which will be in the email body
$Txt_File = "c:\file.txt"
function Send_mail {
#Define Email settings
$EmailFrom = "
[email protected]"
$EmailTo = "
[email protected]"
$Txt_Body = Get-Content $Txt_File -RAW
$Body = $Body_...