#!/bin/bash
#
#
#auth:luoxl
#time:Tue May 12 14:18:24 2009
#filename:mail.sh
#function: a function for send a email to somebody
#
#
#
function send_mail(){
from='xxx@xxx.cn'
to='xxx@xxx.com'
subject="it's ok"
/usr/sbin/sendmail -t <from:${from}
to:${to}
subject:${subject}
body of mail
Endmail
}
send_mail
阅读(1583) | 评论(0) | 转发(0) |