curl smtp command
# E-Mail2022. 9. 23. 08:45curl smtp command

curl을 이용해서 메일발송. curl 버전 7.20.0 이상에서만 작동합니다. 따라서 이전 버전의 curl을 사용하고 있다면, 업그레이드하여 --mail-from 옵션을 사용할 수 있는지 확인해야 합니다. 사전에 아래처럼 발송할 내용을 파일(mailsample.txt)로 생성. from: to: subject: test mail sorry, this is test mail . 인코딩해서 발송할 경우는 헤더에 아래내용 추가해야 함. from: to: subject: test mail MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain;charset=utf-8 sorry, this is test mail. 파일을 생성했으면 ..

텔넷 이메일발송
# Operation System/Linux2015. 8. 16. 05:41텔넷 이메일발송

1. 인증여부 확인 telnet localhost 25 ehlo localhost 250-AUTH LOGIN 부분이 있는지 확인한다. 2. SMTP AUTH 사용자 인증이 되는지 확인 telnet localhost 25 helo locahost 250 SRSECU.sindo.com Hello [192.168.1.154] auth login 334 VXNlcm5hbWU6 (Base64로 인코딩한 ID)= // 뒤에 =는 Base64 의 패딩이다. (Base64로 인코딩한 Password)= base64인코딩디코딩 URL : http://www.hashemian.com/tools/base64-encode-decode.php 235 2.7.0 Authentication successful 라고 나오면 인증이 ..

image