First commit

This commit is contained in:
2018-03-13 08:04:28 +01:00
commit 196a7d2af6
32 changed files with 33836 additions and 0 deletions

17
mail.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/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”