--------------------------------------------------------------------------
Setup hints for using Class 2 modems, BGFAX and Intermail 2.29c   07-14-95
B.J. Guillot
FidoNet 1:106/400                         InterNet: bjg90783@jetson.uh.edu
--------------------------------------------------------------------------

Keep in mind that fax commands cannot be stored in NVRAM.

Here is the relevant information from IMSETUP ...

[IMSETUP] Modem -> Advanced Setup -> Command Strings
  Init-1 ... ATZ|
  Init-2 ... AT+FCR=1;+FDCC=1,3,0,2,0,0,0,0|
  Init-3 ... AT+FAA=1;+FLID="713 555 1212"|

[IMSETUP] Modem -> Advanced Setup -> Answer Control
  Manual answer    Yes
  Force answer     ATA|

NOTE: If you are using a version of IM prior to IM 2.29, the 'force answer'
      field will not have enough room for "AT+FAA=1;A".  On many modems, the
      semicolon on the answer string is option, so "AT+FAA=1A" is okay.

  +fcr=1                   enables fax receiption
  +faa=1                   enables adaptive answering
  +flid="713 555 1212"     sets your FAX ID, up to 20 characters

  +fdcc=1,5,0,2,0,0,0,0    enable high resolution, 14400, 1D compression
  +fdcc=1,3,0,2,0,0,0,0    enable high resolution, 9600, 1D compression
  +fdcc=1,5,0,2,1,0,0,0    enable high res, 14400, 1D and 2D compression

-------------------------------------------------------------------------

[IMSETUP] Modem -> Advanced Setup -> Connect Strings

You will see a list of 14 or so preconfigured connect strings, press
<INSERT> to add one.  If your modem returns "FAX" on a fax call, like the
Supra, use the first string provided.  If your modem returns "+FCON" on a
fax call, like the PPI FXMT, use the second string.

  Connect Message                          Speed  EC  BBSexit  Terminate

  FAX                                      19200  N   0        255
  +FCON                                    19200  N   0        255

-------------------------------------------------------------------------

Notice that "BBSexit" is equal to ZERO.  "Terminate" instructs IM to exit
IMMEDIATELY as it receives the fax response.  ("BBSexit" tells the user
to press <Esc>, and obviously, a fax machine cannot do that.)

IMRUN.BAT should contain something similar to ...

@echo off
c:
cd\im
im
if errorlevel 255 goto fax
if errorlevel 103 maint.bat
if errorlevel 102 toss.bat
if errorlevel 101 local.bat
if errorlevel 100 dobbs.bat
goto end
:fax
  rem ---1 is for com1, and z is for zfax format
  bgfax /fax c:\bgfax 1 z
  imrun.bat
:end

The /fax means your modem reports "FAX".  If it reports "+FCON" use one of
these two lines.

bgfax /fast:4 c:\bgfax 1 z
   or
bgfax /fcon c:\bgfax 1 z

You will have to experiment to determine which is correct.  See BGFAX.DOC
for a detailed description of the differences between /FAX, /FAST, /FCON.

==========================================================================

Regards,
B.J. Guillot

