

 Info Text Header ͻ
                                                                      
  By  : Horst Hackenbruch 2:2440/240.0                                
  To  : All InterMail User's                                          
  Re  : FAX with IM and ZyXEL - no problem.....                       
  St  : Local                                                         
  Rev : 1. Fri 12 Nov 93 12:00; 2. Sun 13 Feb 93 21:12.               
ͼ


You have FAX problems with InterMail, a ZyXEL modem and ZFAX - why ?
have a look at the following info's.....

 System Hardware ͻ
                                                                      
   386/33Mhz (BOX / MAILER)                                           
   486/33Mhz (only for write Mail with FD's FM und prived use)        
                                                                      
 System Software ͻ
    modem     : ZyXEL U1496 E+ Rom RM 6.10                            
    fossil    : Intermail intern or X00 v1.53a                        
    mailer    : InterMail v2.26.                                      
    os system : pure MS-DOS 6.20 no windows, no desqview or           
                any other network software                            
    fax prog. : ZyXEL's ZFAX v2.23 or v3.10                           
ͼ


  InterMail 2.2x; SETUP with ZyXEL U1496 E+ (Mailer/Fax/BBS) 

 InterMail System Settings ͻ

 Hardware 
                                       
 Modem port                    2       
 Maximum baud rate             57600   
 Lock port                     Yes     
 Reset modem to connect speed  No      
 Lower DTR when busy           Yes     
 Lower DTR to terminate call   Yes     
 Toggle DTR before dialing     No      
                                       
ͼ
 Messages 
                              
 Error       ERROR            
 Busy        BUSY             
 No Carrier  NO CARRIER       
 Ok          OK               
 Ring        RING|            
 No Dialtone NO DIAL          
 No Answer   NO ANSWER        
 Voice       VOICE            
 User def 1                   
 User def 2                   
 User def 3                   
 User def 4                   
 User def 5                   
 User def 6                   
                              
ͼ
 Command strings 
                                                          
 Escape code    +++                                       
 Return on-line ~ATO|                                     
 Onhook         ATH0|                                     
 Offhook        ~ATM0H1|                                  
 Dial           ATDP                                      
 Prefix                                                 
 Suffix       |                                         
 Delay          2                                         
 Init-1         AT&FX7L7N7|                               
 Init-2         AT#B1+FCLASS=6+FLID=++49-2173-65932|      
 Init-3                                                   
 Down           ~ATM0H1|                                  
 Reset          ATZ|                                      
                                                          
ͼ
 Answer control 
                           
 Manual answer  Yes        
 Force answer   ATA|       
 Answer delay   7          
 Answer on ring 1          
                           
ͼ
 Connect strings 
   #   Connect Message                       Speed  EC  BBSexit  Terminate 
ĺ
   1   CONNECT|                              300    Y   105      0         
   2   CONNECT 1200|                         1200   Y   105      0         
   3   CONNECT 1200/                         1200   Y   105      0         
   4   CONNECT 2400                          2400   Y   105      0         
   5   CONNECT FAX                           2400   N   0        0         
   6   CONNECT 4800                          4800   Y   105      0         
   7   CONNECT FAX                           4800   N   0        0         
   8   CONNECT 7200                          7200   Y   105      0         
   9   CONNECT FAX                           7200   N   0        0         
  10   CONNECT 9600                          9600   Y   105      0         
  11   CONNECT FAX                           9600   N   0        0         
  12   CONNECT 12000                         12000  Y   105      0         
  13   CONNECT FAX                           12000  N   0        0         
  14   CONNECT 14400                         14400  Y   105      0         
  15   CONNECT FAX                           14400  N   0        0         
  16   CONNECT 16800                         16800  Y   105      0         
  17   CONNECT 19200                         19200  Y   105      0         
  18   CONNECT 21600                         21600  Y   105      0         
  19   CONNECT 24000                         24000  Y   105      0         
  20   CONNECT 26400                         26400  Y   105      0         
  21   CONNECT 28800                         28800  Y   105      0         
  22   CONNECT 31200                         31200  Y   105      0         
  23   CONNECT 33600                         33600  Y   105      0         
  24   CONNECT 36000                         36000  Y   105      0         
  25   CONNECT 38400                         38400  Y   105      0         
  26   CONNECT 57600                         57600  Y   105      0         
  27   CONNECT 64000                         64000  Y   105      0         
  28   CONNECT 76800                         76800  Y   105      0         
ͼ
 Dial command file 
 Filename: DIALCTL.001  
ͼ
 External mail 
                                                       
    String                                     Level   
  1 DOORWAY                                     110    
  2 ZyXEL                                       120    
  3                                               0    
  4                                               0    
  5                                               0    
  6                                               0    
  7                                               0    
  8                                               0    
  9                                               0    
 10                                               0    
                                                       
ͼ

 END InterMail System Settings ͼ


>  1.
   The String "DOORWAY" in External-mail is use for a direct
   call from Doorway.exe over Mailer.

>  2.
   The string "ZyXEL" in External-mail is use for all ZyXEL's
   ZFAX programs.

>  3.
   The string "ATDP" in Command's-String's-Dial is use
   only for german analog (pulse) phone lines.

>  4.
   I use IM with following parameters : /NF /ZMAX:32
   (No extern fossil driver and max. Blocksize is 32 under ZModem)
   For more info's see in the IM manual.

   When you use an extern fossil driver, like X00, you got as
   example this in your CONFIG.SYS file:

   D:\COM\XOO\XOO.SYS E 2 B,1,57600 T=512 R=1024 F=15

   I use in this example comport two (under DOS) for this.
   Don't forget to deactivate the "/NF" Parameter 
   on the InterMail command line,
   when you use an external fossil driver !

>  5.
   IM's comport(2) is locked at 57600 baud and i use an 
   UART NS 16550 AFN/CN on this comport.

>  6.
   My Dial command file under IM have this contents :

   ; V21            AT&N16|
   ; V22            AT&N15|
   ; V22B           AT&N14|
   ; V32            AT&N4|
   ; V32B           AT&N0|
   HST            AT&K1|
   H14            AT&K1|
   H16            AT&K1| 
   ; MNP            AT&K2|
   ; V42            AT&K3|
   ; V42B           AT&K4|
   ZYX            AT&N0|    ; used here for all ZyXEL Connect's
   Z19            AT&N0|    ; same as above but with Z19 flag
   ; PEP            ATX2|
   2:242/18       AT&N14|   ; an node with 2400 baud BTZ modem
                            ; german post law related modem :-(


>  7.
   Now have a look of the follwing BAT. Files. 
   This files are mandatory for BBS-, Doorway- and ZFax- call's.
   For this you must have set "Create BAT.file Yes"

    Errorlevels 
                         
    Received mail   70   
    Create BAT.file Yes  
                         
   ͼ

   Now IM is able to create intern the following (DO)BAT.files :

   DOBBS.BAT
   ---------
   contents as example : EXEBBS 16800 2 182 /Arq/V42b 1
   >                             ^   ^  ^      ^     ^
   >                             |   |  |      |     |
   >                 Connect speed   |  |      |     |
   >                           Comport  |      |     |
   >              max. Time to next Event      |     |
   >                        Error Correct Method     |
   >                                       Line number

   DOCONN.BAT
   ----------
   contents as example : EXECONN 14400 2 42 / 1

   DOSESS.BAT
   ----------
   contents as example : EXESESS 19200 2 1440 /Arq/V42b 1

   This BAT.file's call's every times another BAT.file's
   like EXEBBS.BAT, EXECONN.BAT and EXESESS.BAT. This files
   must always place in IM's Home Directory (i.e. D:\IM)

   Now the contents of this (EXE)BAT.files :

   EXEBBS.BAT
   ----------
   as example :            @echo off
                           cd %ra%
                           ra.exe -b%1%4 -c%2 -t%3 -n%5 -e0
   (used for Remote Access BBS program, one singel line)

   EXECONN.BAT
   -----------
   as example :            @echo off
                           cd %zfax%
                           rcvfax 2 /p:1 /w:%zfax%\files
   (used for ZyXEL ZFAX v2.23 program (RCVFAX.COM) 
    by using the incomming Connect String)
>                          ^^^^^^^

   EXESESS.BAT
   -----------
   as example :            @echo off
                           cd %zfax%
                           rcvfax 2 /p:1 /w:%zfax%\files
   (used for ZyXEL ZFAX v2.23 program (RCVFAX.COM)
    by using the incomming External mail String)
>                          ^^^^^^^^^^^^^
   When you will use the newer ZFAX v3.10 or higher, then replace
   only the string "rcvfax 2 /p:1 /w:%zfax%\files" in your batch files 
   with "ZFAX RF" as ZFAX call. 

   Note : ZFAX v3.10 use his own CFG file and that is mandatory in ZFAX's
          Home Directory !


>  Yes, there are two way's to call the ZFAX program very quickly.

   There is also a third, but very slowy, way by using the Errorlevel's
   in your IMRUN.BAT or IMRA.BAT file.

   For this you must set in IMSETUP under Connect-Strings on every
   "CONNECT FAX" an Errorlevel for BBS Exit.
>                                  ^^^^^^^^

   Here in my example it is "ERRORLEVEL 120" :

 InterMail Batch example ͻ

   IMRA.BAT
   --------
   @echo off

   :START
   cls
   cd %im%
   im %1 %2 %3 %4 %5 /ZMAX:32 (/NF)
   if errorlevel 120 goto FAX_BBS
   if errorlevel 115 goto OFF_FAX
   if errorlevel 110 goto DOORWAY
   if errorlevel 105 goto BBS_CALL
   if errorlevel 100 goto LOCALBBS

[....] rest stripped here

   if errorlevel   1 goto INTERNAL
   goto AFTER-RA
   goto START

   :DOORWAY ; go to DOS via Doorway
   cd %batch%
   call remotedo.bat
   goto START

   :OFF_FAX ; send a FAX out from here
   cls
   cd %offfax%
   offfax regkey
   goto START

   :FAX_BBS ; incomming FAX
   cd %ZFAX%
   rcvfax 2 /p:1 /w:%zfax%\files
   REM zfax rf
   cd %batch%
   call faxnote.bat
   goto START

   :BBS_CALL ; normal BBS call
   cls
   cd %im%
   call dobbs.bat
   goto AFTER-RA

   :LOCALBBS ; local BBS call
   cls
   cd %ra%
   ra.exe -l
   goto AFTER-RA

 END InterMail Batch example ͼ

   So thats all and it work's ....

   And now at the least 3 handy BAT.file's for use the above
   installation :

   DOREMOTE.BAT for use with Doorway
   FAXNOTE.BAT for show incomming FAX on MAIL and MAILER
   and
   VIEWFAX for show FAX over Function Key from IM, usefull only
   when you use ZFAX v2.23 :

 Doorway Call Batch example ͻ

   REMOTEDO.BAT
   ------------
   @echo off
   cls
   d:
   cd %ra%
   doorway com2f /g:on /v:d /k:300 /19: /a:on /b:z /m:100 /o:
   /i:%ra%\dorpaswd.asc /z:%ra%\dorexit.asc /c:dos
>  NOTE : this commandline is too long, please put it on one line !
   d:
   cd %batch%

 END Doorway Batch example ͼ

 FAXNOTE  Batch example ͻ

   FAXNOTE.BAT
   -----------
   @echo off
   cd %im%\zfax
   notify -f%zfax%\files\rcvfax.log -im -n -h -l
   zfnotify %zfax% -im -h -l -n
   cd %batch%


   Note   for use with RCVFAX.COM (ZFAX v2.23) :
          NOTIFY is requestable under "NOTIFY*.*"
          a program from Frank Schuhardt 

          for use with ZFAX v3.10 :
          ZFNOTIFY is frequestable under "ZFNOT*.*"
          a program from Boris Huertgen

 END FAXNOTE Batch example ͼ

 VIEWFAX  Batch example ͻ

   VIEWFAX.BAT
   -----------
   @echo off
   cls
   d:
   cd %zfax%\files

   :RUN
   if exist %zfax%\files\*.0?? goto SHOW1
   if not exist %zfax%\files\*.0?? goto RUN2

   :RUN2
   if exist %zfax%\files\*.p?? goto SHOW2
   if not exist %zfax%\files\*.p?? goto NOMORE

   :SHOW1
   for %%f in (*.0??) do %zfax%\zfax 4 %zfax%\files\%%f
   goto RUN2

   :SHOW2
   for %%f in (*.p??) do %zfax%\zfax 4 %zfax%\files\%%f
   goto END

   :NOMORE
   echo.
   echo.
   echo.
   echo No more Fax File to show ....
   echo.
   pause
   goto END

   :END
   d:
   cd %batch%

 END VIEWFAX Batch example ͼ


I hope this help you and you can allways understand my quick dirty and
over 20 years old school english....

Thanks for reading this

cu Horst

-EOF-