Linux

sendmail 메일 제목,내용 해서 보내기

Naan 2015. 1. 21. 11:26
반응형

sendmail을 이용해서 제목, 내용을 첨부해서 보낼수 있다.


echo "Subject: DF log" | cat - df -h | sendmail -t testmail@testmail.com

이런식으로 해서 메일을 보낸다면 메일 제목과 내용이 첨부 되어서 보내진다.


반응형

'Linux' 카테고리의 다른 글

디렉토리별로 용량 체크  (0) 2015.02.12
the image file is invalid and could not be flashed to the controller  (0) 2015.01.22
intel raid web console 2 port  (0) 2015.01.15
python 2.7.8 upgrade  (0) 2015.01.05
CentOS 7.0 변경된점  (0) 2014.12.16