Enabling mail program

Michael Satterwhite michael at weblore.com
Tue Sep 1 16:59:58 UTC 2009


On Tuesday 01 September 2009 11:05:00 am Chris G wrote:
> On Tue, Sep 01, 2009 at 10:55:59AM -0500, Michael Satterwhite wrote:
> >    I installed mailutils to enable command line email for scripts on my
> >    system. As a test, I ran
> >
> >    mail -s "Test Message" michael at weblore.com < /dev/null
> >
> >    It seemed to run without error, but I never received the test message.
> >    Obviously, I need to do something else to get the mail program
> > working. Would someone be so kind as to let me in on the magic that I'm
> > missing?
>
> By redirecting from /dev/null you sent yourself an empty message so it
> doesn't seem to me to be very surprising that you received nothing.
> Try redirecting from a text file of some sort.

Actually, if you execute the command it will tell you that it sent a message 
with an empty body - which should have been received. There is no requirement 
that a message have a body.

Regardless, I have tried it as well with a small text file. Same results.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090901/6ebc623a/attachment.html>


More information about the ubuntu-users mailing list