mail not sending message
- From: Chris Evans <aaxiomfinity@xxxxxxxxx>
- Date: Wed, 23 May 2012 15:36:49 -0700
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
- Follow-Ups:
- Re: mail not sending message
- From: Camaleón
- Re: mail not sending message
- From: rjc
- Re: mail not sending message
- From: Juan Sierra Pons
- Re: mail not sending message
- Prev by Date: Re: ssh error - Write failed: Broken pipe
- Next by Date: Re: mail not sending message
- Previous by thread: ssh error - Write failed: Broken pipe
- Next by thread: Re: mail not sending message
- Index(es):
Relevant Pages
|