sending mail from Batch file
We have a script to backup files. After the backup operation is over, we would like to send a report as an email notification to some of our email addresses. How could this be done? Blat : blat -to user@example.com -server smtp.example.com -f batch_script@example.com -subject "subject" -body "body" You can also use a Power Shell script: $smtp = new-object Net.Mail.SmtpClient("mail.example.com") if( $Env:SmtpUseCredentials -eq "true" ) { $credentials = new-object Net.NetworkCredential("username","password") $smtp.Credentials = $credentials } $objMailMessage = New-Object System.Net.Mail