18 lines
474 B
Bash
Executable File
18 lines
474 B
Bash
Executable File
#!/bin/bash
|
|
# script to send simple email
|
|
# email subject
|
|
SUBJECT="Backup"
|
|
# Email To ?
|
|
EMAIL="bruno@clicclac.info"
|
|
# Email text/message
|
|
EMAILMESSAGE="emailmessage.txt"
|
|
echo "This is an email message test"> $EMAILMESSAGE
|
|
echo "This is email text" >>$EMAILMESSAGE
|
|
# send an email using /bin/mail
|
|
#/usr/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE
|
|
/usr/sbin/sendmail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE
|
|
|
|
#echo $EMAILMESSAGE | /bin/mail -s “$SUBJECT” “$EMAIL”
|
|
|
|
|