#!/bin/sh SERVER=your.mail.server SENDER=root@router.your.domain RECIPIENT=recipient@your.domain IFS=' ' echo -e "\ Subject: OpenWRT PPP DOWN\n\ From: $SENDER\n\ To: $RECIPIENT\n\ \n\ "`date`"\n\ \n\ \n" \ | mini_sendmail -s${SERVER} -f${SENDER} ${RECIPIENT}