Error when trying to use FaxReceiptOptions

Posted: 10-12-2005, 01:58 PM
Hi,

I have a small application that sends faxes via the Win XP FaxConsole.
Now I would like to get the FaxReceipt sent to me via email but it
fails with errorcode "FaxComEx.FaxDocument.1 Operation failed" on the
ConnectedSubmit method. My code is

Code:
public function sendFax()
on error goto errorhandler
'
' some operations here, like setting reciepients and so on...
'
SetUpMail ' call config sub for mail

objFaxDocument.ReceiptAddress = "email@address.com"
objFaxDocument.ReceiptType = frtMAIL
objFaxDocument.AttachFaxToReceipt = True

JobId = objFaxDocument.ConnectedSubmit(objFaxServer)
If Not IsNull(JobId) Then
SendNetworkFax = True
Else
SendNetworkFax = False
End If
Set objFaxDocument = Nothing
Exit Function

ErrorHandler:
Err.Raise Err.Number, Err.Source, Err.Description
SendNetworkFax = False
End Function

Private Sub SetUpMail()

On Error GoTo SetUpMail_Error

Set objRec = objFaxServer.ReceiptOptions
'  objRec.Refresh

If objRec.SMTPServer = "" Then
objRec.AllowedReceipts = frtMAIL
objRec.SMTPServer = "my_mailserver.com"
objRec.SMTPPort = "25"
objRec.SMTPSender = "FaxServer"
objRec.AuthenticationType = fsatANONYMOUS
'    objRec.Save ' not supported in Win XP

End If
On Error GoTo 0
Exit Sub

SetUpMail_Error:
Err.Raise Err.Number, Err.Source, Err.Description
End Sub
Won't I need some SMTP-engine or such, I've tried to install the IIS
"Default Virutal SMTP Server" but I still can't get it to work.. Any
ideas on why it's failing?

Neiden

Reply With Quote

Responses to "Error when trying to use FaxReceiptOptions"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with windows vista mail, Socket Error: 10053, Error Number: 0x800CCC0F ASM Windows Vista Mail 2 07-27-2007 11:27 PM
Bug#432030: ipw3945-modules-2.6.21-2-686: radio intermittent with kernel error 'ERROR: No TX rate available'. Josh Richard Linux / Unix 0 07-06-2007 10:40 PM
Error Message: Error Applying Transforms. Verify That the Specified Transform Paths Are Valid Mark Fraser Windows XP Help & Support 0 01-04-2004 04:43 PM
A runtime error has occured. Do you want to debug? Line: 1 Error: syntax error Eric Windows XP Network & Web 0 11-24-2003 03:45 PM
Error:Update Manager: Error occurred while creating the main dialog. Please rein John Windows XP Setup 0 09-19-2003 03:03 AM