1. from을 관리자로 하고 첨부파일을 html형식으로 보내기
mail -r "관리자<from@aaa.com>" -s "$(echo -e "제목 입니다\nContent-Type: text/html")" to@mail.com < index1.html
2. 기본적인 메일 보내기 형식
echo "내용이다" | mail -s "제목이다" to@mail.com
3. 파일 내용 보내기
cat index.html | mail -s "html test" to@mail.com
4. 첨부파일 보내기
echo "이것은 첨부파일 테스트이다 " | mail -a index.html -s "제목" to@mail.com
5. 첨부파일을 html형식으로 보내기
mail -s "$(echo -e "제목\nContent-Type: text/html")" to@mail.com < index1.html
댓글 없음:
댓글 쓰기