11-26-2012 02:29 AM
I was wondering if a quick fix with /bin/mail wouldn't help you out?
something simple like:
# For clarity's sake: pick up the command line arguments and make them into something recognisable
# Set the specific subject you want here. (Keep the quotes intact or mail will only use the first word as the subject!)
SUBJECT="sms gateway specific subject"
echo $ALERTBODY | mail -s $SUBJECT $TO
Might need a little bit of tuning to do what you intend. Ofcourse perl or whatever language you care for will work too.