sendemail , gmail SMTP 로 메일 보내기 설정
(
참고:
http://caspian.dotconf.net/menu/Software/SendEmail/
http://stackoverflow.com/questions/12750662/install-perl-module-netssleay-through-cpan )
* 에러 메시지:530 5.7.0 Must issue a STARTTLS command first
1. gmail 설정
https://www.google.com/settings/security/lesssecureapps
에서 허용 선택
2. sendemail 설정
TLS 에 필요한 perl module 설치 ( Net::SSLeay 과 IO::Socket::SSL 설치안되어 있을 경우)
$ su -
# sudo yum install perl perl-CPAN perl-Net-SSLeay perl-IO-Socket-SSL
3. 간단한 테스트
sendEmail -o tls=yes -f YourEmail@gmail.com -t SomeoneYoureEmailing@domain.com -s smtp.gmail.com:587 -xu YourEmail@gmail.com -xp YOURPASSWORD -u "Hello from sendEmail" -m "How are you? I'm testing sendEmail from the command line."