how to invoke the mail from unix ?

How to send mail to users from linux machine when ceratin task finished ?

use mailx for sending mail . You can schedule this in cron or your script .