mail not sending message



I am having trouble getting mail to send the message I attach the script
below



#!/bin/bash
wget http://digitalatoll.com/
rc=$?
if [[ $rc != 0 ]] ; then
# number@xxxxxxxxxxx
SUBJECT="digitalatoll server down"
# Email To ?
EMAIL="9166126904@xxxxxxxxxxx"
# Email text/message
EMAILMESSAGE="msg.txt"
echo error on server! > msg.txt
mail -s "$SUBJECT" -t "$EMAIL" < $EMAILMESSAGE
rm msg.txt
fi
rm index.html