2014-12-12 2 views

답변

1

Blat 명령 줄 도구를 살펴보십시오. SMTP 서버, 포트, 발신 주소 등을 기록하기 위해 빠른 설정이 필요합니다 (또는 원하는 경우 각 통화에서 지정할 수 있음). 일단 설정이 완료되면 매우 간결한 명령을 사용할 수 있습니다. 예를 들어

: 내가 cmd를 프롬프트에서 BLAT 독립형 명령을 실행할 때

SET [email protected] 

REM Send an email notice that the setup has started along with a timestamp. 
REM First parameter as a dash indicates we will provide the body text, 
REM otherwise we could specify a text file here and it will be the body. 
Blat - -to %EmailTo% -subject "Setup Started" -body "Started on %DATE% - %TIME" 

REM Do some stuff... 

REM Send an email notice that the setup is complete along with a log file. 
Blat "C:\Path\To\Log.txt" -to %EmailTo% -subject "Setup Complete" 
+0

는 BLAT 명령을 찾을 수 없습니다 나타납니다 말한다. 이 문제를 해결할 수있는 방법은 무엇입니까? – Joshi

+0

@ Joshi - PATH 디렉토리 (예 : C : \ Windows)의 폴더에 도구를 다운로드하여 포함 된 모든 구성 요소를 넣었습니까? –

관련 문제