Also, one more tip to the wiki. If you start the email part like this
...
...
{
echo To: name@somewhere.com
echo Subject: "$NameShort"
echo " "
# Mail header
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo "Content-Disposition: inline"
echo "<html>"
echo "<body>"
echo "<pre style="font: monospace">"
# Mail body
echo aMule completed this download:
echo ------------------------------...
...
And end it like this
...
...
echo " "
echo --------------------------------------------------------------------
# Mail footer
echo "</pre>"
echo "</body>"
echo "</html>"
} | sendmail -tThe email will then be in html format and
echo "<pre style="font: monospace">" will format the text so it will look nice.
So instead of the text looking like this:
=== Disk usage:
Filesystem Size Used Available Use% Mounted on
none 250.0M 194.1M 55.9M 78% /
devtmpfs 1.9G 4.0K 1.9G 0% /dev
tmpfs 64.0M 376.0K 63.6M 1% /tmp
tmpfs 1.9G 12.0K 1.9G 0% /dev/shm
tmpfs 16.0M 0 16.0M 0% /share
tmpfs 16.0M 0 16.0M 0% /share/snapshot/export
/dev/md9 493.5M 121.1M 372.3M 25% /mnt/HDA_ROOTIt will look like this
=== Disk usage:
Filesystem Size Used Available Use% Mounted on
none 250.0M 194.1M 55.9M 78% /
devtmpfs 1.9G 4.0K 1.9G 0% /dev
tmpfs 64.0M 376.0K 63.6M 1% /tmp
tmpfs 1.9G 12.0K 1.9G 0% /dev/shm
tmpfs 16.0M 0 16.0M 0% /share
tmpfs 16.0M 0 16.0M 0% /share/snapshot/export
/dev/md9 493.5M 121.1M 372.3M 25% /mnt/HDA_ROOT