#!/bin/bash /usr/sbin/sendmail -t <<EOF From: alert center <test@126.com> To: test@126.com #Cc: test@126.com #Bcc: test@126.com Subject: $1 --------------------------------- $2 --------------------------------- EOF