Created
May 17, 2020 16:06
-
-
Save seunggabi/f5a9f05f602b1b532b880bbc4da7c4c0 to your computer and use it in GitHub Desktop.
mail.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# yum install mailx | |
# /etc/mail.rc | |
# set smtp=host | |
subject=$1 | |
attach=$2 | |
content=$3 | |
to=$4 | |
echo ${content} | mailx -v -a ${attach} -s ${subject} ${to} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment