RightFax scanning via SMTP

How to set it up:

1. Enable scanning with terminal embedded and use predefined scanning workflows that will be used with the MFP (see help for more information about "Workflow scanning").
2. Copy "scanToRightFax.cmd" into "C:\SafeQ5\Scan"
3. Copy folder "blat262" from "blat262.full.zip" to "C:\SafeQ5\"
4. Set up customer's SMTP server to deliver all incoming e-mails coming from SafeQ server to <number>@fax.com to a specific POP3 mailbox.
5. Set up RightFax server to periodically check POP3 mailbox as specified in step 4) and send all e-mails from it as faxes (consult RightFax documentation on the setup details).
6. Make sure that users have email defined in YSoft SafeQ

How to use:

1. Authenticate at YSoft SafeQ terminal embedded
2. Choose Scan in the YSoft SafeQ application
3. Press "Scan" button on the MFP and select your RightFax workflow
4. Edit scan parameters for selected workflow and fill in destination fax number in the field "Fax number" and then start the scan
5. Log off the embedded terminal

Troubleshooting:

See cml.log and fax.log in <SafeQ>\logs folder

Scanning workflow content:

<scan>
 <name>Fax</name>
 <destination>script</destination>
 <description>Scan and fax via RightFax</description>
 <options>
    <resolution>normal</resolution>
    <sides>1</sides>
    <color>auto</color>
    <fileType>pdf</fileType>
  </options>
  <admin>
    <parameter>
       <pname>script</pname>
       <type>string</type>
       <label>Script command call</label>
       <required>true</required>
       <default>C:/SafeQ5/Scan/scanToRightFax.cmd %dial% %file% %email%</default>
    </parameter>
    <parameter>
       <pname>targetDir</pname>
       <type>string</type>
       <label>Target directory</label>
       <required>true</required>
       <default>C:/SafeQ5/scan</default>
    </parameter>
  </admin>
  <user>
    <!-- using this parameter, users may enter the fax number on the terminal -->
    <parameter>
       <type>string</type>
       <pname>dial</pname>
       <label>Fax number</label>
       <required>true</required>
       <default></default>
    </parameter>
  </user>
</scan>

scanToRightFax.cmd content:

rem Change the value in SMTPserverIP to the IP address of your e-mail server
set SMTPserverIP=<IP>
 
@echo off
echo --- >> C:\SafeQ5\logs\fax.log
echo %DATE% %TIME% Sending %2 to fax %1, user: %3 >> C:\SafeQ5\logs\fax.log
echo C:\SafeQ5\blat262\full\blat.exe -server %SMTPserverIP% -f %3 -to %1@fax.com -subject "Fax from %3 to %1" -body "This is Fax" -base64 -attach "%2" >> C:\SafeQ5\logs\fax.log
C:\SafeQ5\blat262\full\blat.exe -server %SMTPserverIP% -f %3 -to %1@fax.com -subject "Fax from %3 to %1" -body "This is Fax" -base64 -attach "%2" >> C:\SafeQ5\logs\fax.log 2>&1
if errorlevel 1 goto error
:ok
echo Deleting the file >> C:\SafeQ5\logs\fax.log
del "%2" >> C:\SafeQ5\logs\fax.log 2>&1
goto end
:error
echo Errorlevel: %ERRORLEVEL% - not deleting >> C:\SafeQ5\logs\fax.log
:end

Rotation of the logs is missing.

BLAT - tool used in a fax.cmd script to transmit scan via SMTP 

To obtain blat262.full.zip please contact Customer Support Services.