[CentOS] how to send mail from console
Jussi Hirvi
greenspot at greenspot.fi
Fri Jan 15 16:28:54 UTC 2010
Here is what I use:
mail -s "My email subject" me at domain.com <$myfile
On some (older?) systems the command is email instead of mail. Check
man mail
Regards,
Jussi
On 15.1.2010 15:15, Roland Roland wrote:
> Hi all,
>
> 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?
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
--
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hirvi at greenspot.fi * http://www.greenspot.fi
More information about the CentOS
mailing list