script to send mail from console added.