command line 명령어로 메일 보내기 (sendEmail) - 한글 제목 불가

리눅스/Mail|2019. 7. 10. 15:08
반응형

1. 설치

# yum -y install sendEmail

 

2. 발송

 

* 형식

sendEmail 

-f {보내는사람Email주소} 

-t {받는사람Email주소}

-s {SMTP및포트} 

-xu {보내는사람Email주소계정}

-xp {보내는사람Email계정패스워드}

-u {제목}

-m {내용}  // 내용을 텍스트로 보낼 경우 (선택)

-o message-file=body.html  // 내용을 html 파일로 보낼 경우 (선택)

-o message-charset=UTF-8  // 언어셋 (선택)

-a file01.ext file02.ext file03.ext  // 파일 첨부 (선택)

 

# sendEmail -f sender@sysdocu.tistory.com -t user@sysdocu.tistory.com -s smtp.tistory.com:25 -xu sender@sysdocu.tistory.com -xp 12345678 -u 테스트제목 -o message-file=body.html -o message-charset=UTF-8

 

[출처] https://idchowto.com/?p=32943

 

반응형

댓글()