I have been working for a while (when I can find the time) on a work order tracking system for our department. This system allows end users to generate work orders and automatically notifies all parties who need to be informed. It also generates bills and does the same thing with them. We are publishing the application to the end user through Citrix server (just started testing) and on the surface everything seems to be working fine except for the email function. Here is my example code:
Private Sub XXXX_Click()
Dim appOutlook As Outlook.Application
Dim ItmNewEmail As Outlook.MailItem
Dim fs, f, f1, fc, s, i
Dim title As String
Dim folderspec As String
Set appOutlook = New Outlook.Application
Set ItmNewEmail = appOutlook.CreateItem(olMailItem)
If Forms("XXXXX").Controls("Department").Value = "Database" Then
With ItmNewEmail
.To = "alex@mycompany.com; rich@mycompany.com"
.CC = Forms("XXXXX").Controls("RequestorEmail").Value
.Subject = "New Work Order"
.Body = "A new work order has been submitted to " & Forms("XXXXX").Controls("Department").Value & " for Job Number " & Forms("XXXXX").Controls("JOBID").Value & Chr(13) & "The work order control number is " & Forms("XXXXX").Controls("WOID").Value & Chr(13) & Chr(13) & Forms("XXXXX").Controls("WODescription") & Chr(13) & "Due " & Forms("XXXXX").Controls("DateNeeded") & Chr(13) & Chr(13) & Forms("XXXXX").Controls("Instructions")
.Send ' send files and notification
End With
It looks like it is only getting to the very first line (dim appOutlook as Outlook.Application).
Does anyone know if there is some kind of issue with Citrix that will not allow you to send emails? It runs individual's PC Login and Password as well as server login script every time we start the application, and email addresses are attached to domain logins so I would not think it would cause a problem. Apparently it is though.
I have never worked with Citrix server before, and if anyone has experience publishing their applications through it and could help me out I'd really appreciate it. Thanks a lot,
Alex
Private Sub XXXX_Click()
Dim appOutlook As Outlook.Application
Dim ItmNewEmail As Outlook.MailItem
Dim fs, f, f1, fc, s, i
Dim title As String
Dim folderspec As String
Set appOutlook = New Outlook.Application
Set ItmNewEmail = appOutlook.CreateItem(olMailItem)
If Forms("XXXXX").Controls("Department").Value = "Database" Then
With ItmNewEmail
.To = "alex@mycompany.com; rich@mycompany.com"
.CC = Forms("XXXXX").Controls("RequestorEmail").Value
.Subject = "New Work Order"
.Body = "A new work order has been submitted to " & Forms("XXXXX").Controls("Department").Value & " for Job Number " & Forms("XXXXX").Controls("JOBID").Value & Chr(13) & "The work order control number is " & Forms("XXXXX").Controls("WOID").Value & Chr(13) & Chr(13) & Forms("XXXXX").Controls("WODescription") & Chr(13) & "Due " & Forms("XXXXX").Controls("DateNeeded") & Chr(13) & Chr(13) & Forms("XXXXX").Controls("Instructions")
.Send ' send files and notification
End With
It looks like it is only getting to the very first line (dim appOutlook as Outlook.Application).
Does anyone know if there is some kind of issue with Citrix that will not allow you to send emails? It runs individual's PC Login and Password as well as server login script every time we start the application, and email addresses are attached to domain logins so I would not think it would cause a problem. Apparently it is though.
I have never worked with Citrix server before, and if anyone has experience publishing their applications through it and could help me out I'd really appreciate it. Thanks a lot,
Alex