send mail

    技术2022-05-19  20

    #!/bin/bash# script to send simple email# email subjectSUBJECT="SET-EMAIL-SUBJECT"# Email To ?EMAIL="admin@somewhere.com"# Email text/messageEMAILMESSAGE="/tmp/emailmessage.txt"echo "This is an email message test"> $EMAILMESSAGEecho "This is email text" >>$EMAILMESSAGE# send an email using /bin/mail/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE


    最新回复(0)