 

    .

:
sendfile.exe <smtp.server> <address>/<address>=<address> <file>/<dir>

:
sendfile.exe mail.ru mail@mail.ru tmp.txt

       /?     .

<smtp.server> -   .   SMTP   .         .       ,   .  ,    ivanov@microsoft.com,    microsoft.com, ,     ,          .

<address>/<address>=<address> -  ,  ivanov@microsoft.com.        ,        ,  ivanov@microsoft.com=petrov@mail.ru,            .

 <file>/<dir> -    ,   .   ,           .      .   ,    ,   c:\out\
!   ,        .         .


 

      ,     SendMail     sendmail.ini.    ,      .

        

[Setting]  -     
[Mail] -     
[Auth] -      SMTP

 Setting    

Port=_   25,          .     25 .

TempPath=    

DeleteSendedFile=ON/OFF,   ON .           .

FileProtocol=_,   SENDMAIL.TXT.     .

Protocol=ON/OFF ,    OFF.       .  OFF -     

AddProtocol=ON/OFF,   OFF.            .

WakeUp=MM:,    .         .

Delay=,   0.   ,              

DelaySend=,   0.           ,  ,      (Multi=ON)

Try=,   -1.     .  -1          .   0 -      .

Phone=,   - .        .

Dial=_,   - .           .  ,   Phone .

User=,   - .    Phone  Dial,  ,         .

Pass=   - .    Phone  Dial,  ,         .

 ,   ,   Dial   ,        ,  User  Pass   .

 Mail    

From=,   - NotForMail@hackzone.ru.    .   ,        ,      SMTP    .    Templ  -         .        ,     

Multi=ON/OFF   OFF.           .     ,   .     ,      .      DelaySend,             .      ,       ,        .

Templ=__EML   .         .  -         .       ,    HTML,          .        .   ,     .  ,     EML,  .  

 Auth             

Auth=_   - .      LOGIN

Login=_      

Password=      

!      ,          
502 Error: command not implemented (  )

   ERRORLEVEL

 SendMail        .        ,    Windows start   /w, 

start /w sendmail.exe server address file

           .
       ERRORLEVEL   
0 -   
1-          
2-                Try.          .

        

@echo off
start /w sendmail.exe server ivanov@mail.ru file.txt
if errorlevel 2 goto break
if errorlevel 1 goto error

echo   
goto end

:error
echo    
goto end

:break
echo   
goto end
:end
