Send mail from a script

Hi there,

I am in the process of migrating a qmail system across onto messaging server and have to duplicate some old scripts that perform various (vital) functions.

A couple of these require that I generate and then send messages from a bash script. Before I just did this:

cat $TMPMAIL | /local/qmail/bin/qmail-inject

And the mail would be sent off and processed (the file $TMPMAIL contains the From, To, Subject etc needed to make it a correctly formatted email).

I found the 'deliver' tool in messaging server but this only allows me to send to a user on the system (by writing it into their mailbox). Unfortunately, I need to send the message to a static group on the system.

So, does messaging server have the ability to accept mail from a script (like qmail, sendmail, exim etc) and just process it like a message received in another way. If yes, any pointers on how to do it or where it will be documented as I have searched and failed to find anything.

Thanks

Josh

[1030 byte] By [Josh_Berrya] at [2007-11-27 1:18:58]
# 1
Why not to use mailx or mail and submit your email via SMTP?cat $TMPMAIL | mailx -s "your subject" someonewhocares@address.com
d-v-ka at 2007-7-11 23:55:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
Good point, you always miss the easy ones.ThanksJosh
Josh_Berrya at 2007-7-11 23:55:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...