I have a custom form created in Outlook that sends an email notification anytime a change occurs. Due to the form specifications, I had to add a bit of VBScript (unfortunately) to the form, which sends emails to the closing event of the form.
The form is currently published and works well. The only problem that arises is that I am the only one of the users who use the form that receives the request with the following dialog box:
No one using the form gets a dialog. This dialog box makes you wait until the progress bar is complete before "Let" send you an email (about 5 seconds). Is it because I'm a publisher? Or is it the client setting I am facing? How to disable this puppy?
If its relevant sources are sources:
Sub SendAttach() 'Open mail, adress, attach report Dim objOutlk 'Outlook Dim objMail 'Email item Dim strMsg Const olMailItem = 0 'Create a new message set objOutlk = createobject("Outlook.Application") set objMail = objOutlk.createitem(olMailItem) objMail.To = Item.UserProperties("Assigned To") objMail.cc = Item.UserProperties("Bcc") 'Set up Subject Line objMail.subject = "Work Order Notifications: " & Item.UserProperties("Work Order Number") & " - " & _ Item.UserProperties("Subject") & " Due " & Item.UserProperties("Due Date") 'Add the body strMsg = Item.UserProperties("Specifications") & vbcrlf strMsg = strMsg & Item.UserProperties("Constraints") objMail.body = strMsg objMail.display 'Use this to display before sending, otherwise call objMail.Send to send without reviewing objMail.Send 'Clean up set objMail = nothing set objOutlk = nothing End sub
Security is not a concern here. If someone managed to start sending emails from my workstation, I have much more problems than replacing emails!
As a note, I could not decide if SO or SU was the best place for this question. If necessary, redirect accordingly.
source share