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