[CentOS] how to send mail from console

John Doe jdmls at yahoo.com
Fri Jan 15 13:53:41 UTC 2010

From: Roland Roland <R_O_L_A_N_D at hotmail.com>
> i'm trying to get a script to send me an email whenever a certain 
> condition takes place..
> i'm afraid i dont have experience with mail command nor anything else 
> related to sending emails for that matter..
> i googled a bit and tried using mutt and mail ...
> though i do not recieve any email in my inbox...
> the command im using is the following : mail -s “disk space report” 
> R_O_L_A_N_D at hotmail.com
> should i setup a default smtp to use? where can i check for the errors 
> that are taking place?

Tried with sendmail service started...?
Check /var/log/maillog

An other way:
/usr/sbin/sendmail -t <<EOF
Subject: ...
to: ...
Content-type: text/plain

Hello World...



More information about the CentOS mailing list