Monday 18 February 2019

How to send an email along with attachment from linux server

ls awrrpt_1_11663_11664.html awrrpt_1_11664_11665.html

echo "Attached file to oracle SR" | mailx -s "SUBJECT" -a "LOCATION_REFNUM_DATA2.htm" -a "2ndfile2.htm" SKALVAKUNTLA@abc.COM

echo "AWR Report from 7 to 8 " | mailx -s "SUBJECT" -a "awrrpt_1_11677_11678.html" SKolluri@abc.com

No comments:

Post a Comment