Skip to content

Instantly share code, notes, and snippets.

@chris-vanvranken
Last active December 21, 2015 14:39
Show Gist options
  • Save chris-vanvranken/6320939 to your computer and use it in GitHub Desktop.
Save chris-vanvranken/6320939 to your computer and use it in GitHub Desktop.
FileSystemFaxing service. Will fax documents created under C:\FileSystemFaxing

#Description The FileSystemFaxing Service sends out an Email to faxNumber@eFaxsend.com when a new file is created under a subdirectory of C:\FileSystemFaxing. The created file is attached to the email so that eFaxsend.com will send the attachment as a fax to the given faxNumber. eFaxsend.com sends a notification to a shared mailbox, lis-rr@URMC.rochester.edu, when faxes are successfully (or unsuccessfully) sent out. Currently installed on the CLSS Automation PC.

##Features

  • Supports faxing any of these eFaxSend file types including PDF and HTML
  • Ignores files created with names starting with "!" or ending with ".ini"
  • Ignores files in Directories named "Faxed"
  • Reads parameters from fax.ini

##fax.ini

  • Reads faxNumber,moveToFaxedFolder, and copyToEmailAddress parameters from a file in the subdirectories called fax.ini
  • faxNumber specifies the number to fax files in the subdirectory.
  • moveToFaxedFolder specifies whether the file should be saved or deleted. If saved it is moved to c:\FileSystemFaxing\SomeSubDirectory\Faxing
  • copyToEmailAddress specifies if a copy of faxed files should be sent to another email address too
  • If fax.ini is missing, or a parameter is not given then defaults will be used:

Default values for fax.ini

faxnumber=15852731355
movetofaxedfolder=false
copytoemailaddress=

Example of c:\FileSystemFaxing\SomeSubDirectory\fax.ini

faxNumber=15857777777
moveToFaxedFolder=true
copyToEmailAddress=someone@urmc.rochester.edu

Example2 of c:\FileSystemFaxing\SomeSubDirectory2\fax.ini

faxNumber=15857777777
moveToFaxedFolder=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment