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

