You are not logged in.

#1 2009-02-13 14:06:41

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

BASH] mail-script not working

Hi,

Taking first steps in bash-scripting in making an autoreply-script to go along with an email-filter.

However, this:

/usr/bin/mail -s "Re: $1" "$2" < $EMAILMESSAGE

Seems to give the OK-status (in an if-structure, the 'then'-statement is shown), but the mail never arrives, although it is a local mail-address. I have checked the vars (I print them in the then-statement), and they are all good.

On the other hand, executing

/usr/bin/mail -s test my@emailadress.com text

will only show me a blinking cursor. So it might be related to the mail-bin?

Zl.

Offline

Board footer

Powered by FluxBB