Thursday, November 11, 2010

Mail Send by command line

# Mail -s “Hello world” abc@xyz.com

#echo | mutt -a mybackup.tar -s “daily backup” abc@mydomain.com

#printf “Hello\nWorld” | mail abc@xyz.com

#printf “This is the main body of the mail\n with line break” | mail -s “Subject of the Email” to@abc.com -f from@abc.com

# echo “Welcome to Jungle ” | mail -s “Hello world” abc@xyz.com -c pqr@xyz.com -b ghi@xyz.com

#( df -h; free -m ) | mail -s "disk and RAM report" abc@xyz.com

No comments:

Post a Comment