미니옵빠의 code stubs

bash shell 에서 sendmail로 메일 보내기 본문

OS/Linux

bash shell 에서 sendmail로 메일 보내기

미니옵빠 2012. 2. 9. 12:40

mail -s "mail title" "수신 mail 주소"

* sendmail 이 동작 중이어야 함
* root 권한으로 밖에 보내지지 않아 sudo 를 이용해서 발송
* 명령어 입력 후 본문 내용 입력

참고 정보
메일 메시지 까지 표준입력 없이 전송: http://theos.in/shell-scripting/send-mail-bash-script/

sendmail 을 이용한 전송(잘 안됨 -_-)
http://www.zedwood.com/article/92/bash-linux-sendmail-script 
http://stackoverflow.com/questions/1333097/how-to-send-a-html-email-with-the-bash-command-sendmail 

그냥 읽어볼 내용: http://lowfatlinux.com/linux-send-email.html