Jump to content

Recommended Posts

Posted

Hi !

i have a problem sending multiple fax simultaneously with microsoft FAX.

Here is my configuration:

1 Windows 2003 Server with microsoft fax service installed. two 56K modem fax installed on the server. Ip address of the server is 94.0.0.13

1 Windows XP SP3 professionnal PC with the shared FAX installed.

When i use the FAX wizard to send a fax from the PC, everything is working. When i send 1 FAX to 2 recipients, all is working too and they are sent simultaneously (there is no fax in queue).

So theer is no configuration or hardware problem, as it works all the time.

Now i made an autoit Script, here is the code:

$objFaxDocument = ObjCreate("FAXCOMEX.FaxDocument")
$collFaxRecipients = ObjCreate("FAXCOMEX.FaxRecipients")

$objFaxDocument.Body = "c:\temp\test.rtf"    ; File to FAX
$objFaxDocument.DocumentName = "Mon fax"     ; Document Name
$collFaxRecipients = $objFaxDocument.Recipients
with $collFaxRecipients
.Add ("0466000001", "Recipient 1")  
.Add ("0466000002", "Recipient 2") 
EndWith
$objFaxDocument.Sender.LoadDefaultSender()
$JobID = $objFaxDocument.Submit("94.0.0.13")
$lCount = $collFaxRecipients.Count
For $i = 1 To $lCount
    $collFaxRecipients.Remove(1)
Next

This code is working i have no errors from autoit, but in the FAX console i see everytime an error "unrecoverable error" (translated from french) see below:

http://upix.in/images/25453954176792026907.png

And only the 1st FAX is sent.

I searched everywhere over internet and never found anything related to this error problem.

I found something myself, when i add more recipients, lets say 4 like this :

.Add ("0466000001", "Recipient 1")

.Add ("0466000002", "Recipient 2")

.Add ("0466000003", "Recipient 3")

.Add ("0466000004", "Recipient 4")

in this case the FAX for recipient 1 and 4 are sent simultaneously and the FAX for recipient 2 and 3 Fail with the "unrecoverable error".

So what am i missing in my script ?? seems to be something done too fast that the system cannot handle...

Any Help appreciated !!

Thanks.

Posted

it's for our sales service, we send and receive orders that way for our small customers who don't have a mail in their company...so actualy sending over 200 fax take a lot of time, if i can take advantage of the 2 fax/modem then it will reduce the time per 2....For the marketing we are using emails.

Posted

i think there is just 1 stupid thing missing somewhere...it works all the time when using the wizard, it should work with my code...but it fails. <_<

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...