First commit
This commit is contained in:
17
mail.sh
Executable file
17
mail.sh
Executable 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”
|
||||
|
||||
|
||||
Reference in New Issue
Block a user