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. 파일을 생성했으면 ..

image