2019年8月11日 星期日
An Email Program for Sending SMTP Mail from a Command Line
An Email Program for Sending SMTP Mail from a Command Line
參考:
http://caspian.dotconf.net/menu/Software/SendEmail/
# Download
http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v156.zip
# unzip ...
#
# example
# Use Gmail
./sendEmail \
-f "momo2alert@csp.twm" \
-u "Email Subject 1" \
-t "cc.vbhsieh@gmail.com" \
-s "smtp.gmail.com:587" \
-o tls=yes \
-xu "username" \
-xp "password" \
-o message-file="/etc/hosts"
/omscripts/sendEmail/sendEmail.pl \
-f "mydb@lab.com"" \
-s smtpserver:25 \
-o message-file="$HTMLOut" \
-o message-charset=utf-8 -o message-content-type=html \
-u "[mydb] ERROR call `date -d "1 Hour ago" +%Y-%m-%d-%H`" \
-t "$MAILTO" \
-cc "$MAILCC" \
-a $LOG2 /home/mplususer/omscripts/code.txt
正常模式 多檔模式
/omscripts/sendEmail/sendEmail.pl \
-f "mydb@lab.com" \
-s smtpserver:25 \
-u "[TOP SQL]_[mydb] DB StackPack Report ${DAY_1} " \
-m "mydb DB StackPack Report ${DAY_1} " \
-t "$TPMMAIL" \
-cc "$MAILLIST" \
-a `find /oracle/u02/omscripts/SP -maxdepth 1 -name "*.txt"`
alias
TO=mike@mylab.com
alias MAIL='/omscripts/sendEmail/sendEmail.pl -f "`hostname`@send" -s smtpserver:25 -u "Mike Send real send `hostname` `date +%Y-%m-%d_%H:%M:%S` " -m "Mike Send real send `date +%Y-%m-%d_%H:%M:%S` " -t $TO -a '
訂閱:
張貼留言 (Atom)
RHEL install EPEL
https://www.linuxtechi.com/install-epel-repo-on-rhel-system/ EPEL dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest...
-
記事本開啟 HKEY_CLASSES_ROOT\*\shell] [HKEY_CLASSES_ROOT\*\shell\NotePad] @="用記事本開啟" [HKEY_CLASSES_ROOT\*\shell\NotePad\command] @=...
-
下載 http://dba-tips.blogspot.tw/2015/05/oracle-database-health-check-script.html Oracle Database Health Check Script Do you wan...
-
旋轉泡泡: Oracle DataGuard 相關 Oracle DataGuard 檢查開啟狀態 -- 請全貼 -- ===check=== select dbid,name from v$database; select log_mode , OPE...
沒有留言:
張貼留言