Sendmail
From MohidWiki
Revision as of 17:45, 24 March 2008 by 192.168.20.177 (talk)
Sendmail is your smtp server for sending and receiving emails in linux.
Quick start
- Check if sendmail is activated
> ps axf | grep sendmail
- Here's how to activate sendmail
> chkconfig chkconfig --level 35 sendmail on > /etc/init.d/sendmail start
- Test sendmail by sending an email
> echo "test" | mail -s testsubject someemail@hotmailorwherever.com
- Send files in email from command line
> afilename=somefile.ext; > (echo "$afilename is attached" ; cat $afilename | uuencode $afilename) | mail -s "`echo $afilename`" youraddress@yourserver.com