역시 리눅스.
리눅스에서 한줄로 Email 보내기
원본 : http://www.zulfanruri.com/ko/mengirim-email-dari-command-line-menggunakan-account-gmail-atau-yang-lain.htm
우분투에서 해보기
1. send Email 설치하기
cmd > apt-get install sendEmail
2. TLS 지원하기 위하여 Net::SSLeay perl 과 IO::Socket::SSL perl 설치하기
cmd > apt-get install libnet-ssleay-perl
cmd > apt-get install libio-socket-ssl-perl
cmd > apt-get install libio-socket-ssl-perl
준비 끝!
cmd > sendEmail -f [from-email] -t [to-email] -s smtp.gmail.com -o tls=yes -xu [username] -xp [password] -u "제목입니다. - This is test email" -m "메일내용입니다. \n 작업 끝났습니다."
-f : 보내는 사람 메일 주소
-t : 받는 사람 메일 주소
-s : SMTP 서버
-o tls=yes : TLS 사용
-xu 사용자 이름
-xp 비밀번호
-u 제목
-m 내용
신기하군요~




댓글을 달아 주세요