View Single Post

  #4 (permalink)  
Old 10-25-2006, 08:07 PM
sweta's Avatar
sweta sweta is offline
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 151
Rep Power: 4
sweta will become famous soon enough
Default

Use mail command to send email
Code:
mail -s "subject" me@yahoo.com < log.file.txt
Use matt command to send an email attachment
Code:
mutt -s "subect" -a  /var/log/mail.log  me@yahoo.com < /dev/null
You need to configure sendmail as null mail client to forward all mail to central mail server or MTA hub.

What monk told is quite advance and it is only recommended if you need to authenticate SSL mail or in chrooted jail.
__________________
Friends - v-nessa - missyAdmin
Reply With Quote