[CentOS] how to send mail from console

fred smith fredex at fcshome.stoneham.ma.us
Fri Jan 15 13:50:15 UTC 2010


On Fri, Jan 15, 2010 at 11:33:02AM -0200, Lincoln Zuljewic Silva wrote:
> Look for erros in /var/log/maillog. Do you have sendmail running?
> 
> On Fri, Jan 15, 2010 at 11:15 AM, Roland Roland <R_O_L_A_N_D at hotmail.com> 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?
> > _______________________________________________

If you don't have sendmail (or other smtp agent) running, and configured
to be able to properly deliver mail, you may need to figure out how to
do that.

Or, if your only need for sending mail on that particular computer
is for this single purpose, you may find it easiest to try the
package "SendEmail", a smtp sender written in perl, which requires no
configuration and can be controlled entirely from the commandline. You
can find it at: http://caspian.dotconf.net/menu/Software/SendEmail/

I'm using it as a reporting tool for an unattended app I've written, and
it works great.

Fred
-- 
---- Fred Smith -- fredex at fcshome.stoneham.ma.us -----------------------------
                      The eyes of the Lord are everywhere, 
                    keeping watch on the wicked and the good.
----------------------------- Proverbs 15:3 (niv) -----------------------------



More information about the CentOS mailing list