sending mail from Batch file

user73628 picture user73628 · Apr 2, 2009 · Viewed 169.6k times · Source

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?

Answer

Colin Pickard picture Colin Pickard · Apr 2, 2009

Blat:

blat -to [email protected] -server smtp.example.com -f [email protected] -subject "subject" -body "body"