
Malkavian99
Active Members-
Posts
45 -
Joined
-
Last visited
Recent Profile Visitors
Malkavian99's Achievements

Seeker (1/7)
0
Reputation
-
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
Probably something along those lines. It's working and better than it did before I think. Thanks. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
Water, I made the changes and removed the _OL_ItemFind routines and it works. Not sure what I was coding previously that was causing it not to work. Thanks. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
-
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I get the distribution to work. See my code below. Took a bit of time but it works. It creates the distribution list 'Staffing Report', populates it with people from a database, adds the list as the recipient to the email and sends it. Then it deletes the distribution list. Global $oOL = _OL_Open(True) Global $oItemDList, $oItemAdd, $arrRecipients, $RecipientCounter, $MsgRecipients = "", $Result, $oItemDListFind Global $ListLocation = "*\Contacts" Global $DListName = "Staffing Report" _OL_ItemCreate($oOL, $olDistributionListItem, "", "", "Subject=" & $DListName) ;if @error <> 0 then Exit msgbox("","", "Error creating distribution list " & @error & " " & @extended) If @error then Return SetError(506, @error, 0) $oItemDList = _OL_ItemFind($oOL, $ListLocation, $olDistributionList, "", "Subject", $DListName, "EntryID") ;if @error <> 0 then Exit MsgBox("","", "List not Found " & @error & " " & @extended) if @error then Return SetError(507, @error, 0) $arrRecipients = StringSplit($MessageRecipients, ";") _ArrayDelete($arrRecipients, $arrRecipients[0]) $arrRecipients[0] = $arrRecipients[0] - 1 For $RecipientCounter = 1 to $arrRecipients[0] _OL_DistListMemberAdd($oOL, $oItemDList[1][0], Default, $arrRecipients[$RecipientCounter]) ;if @error <> 0 Then Exit MsgBox("", "", "Error Adding Recipient " & @error & ", " & @extended) If @error then Return SetError(508, @error, 0) Next ;_OL_Wrapper_SendMailDisplay($oOL, $DListName & ";", "", "", $MessageSubject, $MessageText, "", $olFormatHTML, $olImportanceHigh) _OL_Wrapper_SendMail($oOL, $DListName, "", "", $MessageSubject, $MessageText, "", $olFormatHTML, $olImportanceHigh) _OL_ItemDelete($oOL, $oItemDList[1][0], Default) -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
Checked this morning and not resolving. Neither is the distribution list option. Weird that all of a sudden it would stop working. Is there a way to add to an already created distributionlist? I can't seem to determine how to make a object reference to the distribution list that has already been created. Thanks. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I can find the list using the _OL_ItemFind line and it comes back @error 0, so the Distribution List has been found. It is just when we try to add the list to the recipients of the email it errors. I even tried creating the email manually and adding the information just like the wrapper does. Still get 4400. On a side note. They are supposed to be doing maintenance on our Exchange servers this weekend so we might take this up again on Monday. I wonder if enough people made comments that made our Exchange admins take a look. Thanks for all your help. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I corrected my code. I'm now receiving error 4400 and 0 on the extended when doing the Wrapper call. Here is the code. Global $oOL = _OL_Open(True) Global $oItemDList, $oItemAdd, $arrRecipients, $RecipientCounter, $MsgRecipients = "", $Result, $oItemDListFind Global $ListLocation = "*\Contacts" Global $DListName = "StaffingReport" $oItemDList = _OL_ItemCreate($oOL, $olDistributionListItem, "", "", "Subject=" & $DListName) If @error then Return SetError(506, @error, 0) $arrRecipients = StringSplit($MessageRecipients, ";") _ArrayDelete($arrRecipients, $arrRecipients[0]) $arrRecipients[0] = $arrRecipients[0] - 1 For $RecipientCounter = 1 to $arrRecipients[0] _OL_DistListMemberAdd($oOL, $oItemDList, Default, $arrRecipients[$RecipientCounter]) If @error then Return SetError(507, @error, 0) Next $oItemDListFind = _OL_ItemFind($oOL, $ListLocation, $olDistributionListItem, "Subject=" & $DListName) if @error <> 0 then Exit MsgBox("","", "List not Found " & @error & " " & @extended) MsgBox("","",$DListName) ;_OL_Wrapper_SendMailDisplay($oOL, $DListName & ";", "", "", $MessageSubject, $MessageText, "", $olFormatHTML, $olImportanceHigh) _OL_Wrapper_SendMail($oOL, $DListName & ";", "", "", $MessageSubject, $MessageText, "", $olFormatHTML, $olImportanceHigh) MsgBox("","",@error) MsgBox("","",@extended) -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I've been able to create and add members to the list with no problem. It's getting that list to be seen by the wrapper. I will make the adjustments to my coding when I get to work tomorrow. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
Now I'm stumped. I seem to be missing something. I can create a distribution list and add people to it. I can even delete the list. But if I try to reference the list I just created the entry doesn't work. It doesn't put anything in. If I reference a distribution list I created manually in Outlook, it works great. Once the list is created do I need to save that item? If so, how? UPDATE: When I do a ItemRecipientCheck on the distribution list it comes back false in the array so that tells me it is not resolving. Now I need to find out how to get it to resolve. Here is the code I'm using Global $oOL = _OL_Open(True) Global $oItemDList, $oItemAdd, $arrRecipients, $RecipientCounter, $MsgRecipients = "", $Result, $oItemDListFind Global $ListLocation = "*\Contacts" $oItemDList = _OL_ItemCreate($oOL, $olDistributionListItem, "", "", "Subject=StaffingReport") if @error <> 0 then Exit msgbox("","", "Error creating distribution list " & @error & " " & @extended) $arrRecipients = StringSplit($MessageRecipients, ";") _ArrayDelete($arrRecipients, $arrRecipients[0]) $arrRecipients[0] = $arrRecipients[0] - 1 For $RecipientCounter = 1 to $arrRecipients[0] $oItemAdd = _OL_DistListMemberAdd($oOL, $oItemDList, Default, $arrRecipients[$RecipientCounter]) if @error <> 0 Then Exit MsgBox("", "", "Error Adding Recipient " & @error & ", " & @extended) Next $oItemDListFind = _OL_ItemFind($oOL, $ListLocation, $olDistributionListItem, "Subject=StaffingReport") if @error <> 0 then Exit MsgBox("","", "List not Found " & @error & " " & @extended) _OL_Wrapper_SendMailDisplay($oOL, "StaffingReport;", "", "", $MessageSubject, $MessageText, "", $olFormatHTML, $olImportanceHigh) Any thoughts? -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I got the distribution list to work, but I created the list. I'm now looking into if I can create a distribution list on the fly, put names in it from a database and then delete the distribution list once the email has been sent. I'm looking at the ItemCreate function to see if this will work. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I have figure out how to make it work. Our system looks at the Global Address list first then the users contacts. I'm going to create a mailing list fo the users and put it in their personal contacts. The program will know what list to pull based on what report they are wanting to email and it already sends the email without a problem automatically. I think I will also write a small error routine to check for the mailing list first and if not found the user will have to specify the recipients. I really need to read up more on the Outlookex.udf. Thanks. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
Did some testing and had some odd results. When it did the RecipientCheck it came back as True in the results, so the recipient is fine. It seems to be something in our Outlook settings or group policy settings on our workstations that might be causing the issue. Right now the address is being resolved through the Global Address Book. Is it possible to put a address in that would be in the users personal contacts? Say like a mailing list the user has created? Thanks -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
Now I'm not sure if it is a problem. It might be a new security feature we implemented. Central office does things and never tells the lonely techs in the field that something changed. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I'm sure it will not be in the next few days. I still have to try and describe the problem with our System Admins and then have them go to our central office to initiat the change across all exchange servers. We have I think 10 across the country. -
OutlookEX UDF - Help & Support (II)
Malkavian99 replied to water's topic in AutoIt General Help and Support
I will work with that today. I think we might have found the problem and it is a setting with our exchange server. For automatic email updating our server keeps wanting to change a persons email address from Jane.A.Doe@aaa.com to JaneA.Doe@aaa.com. We think they missed a setting to allow for multiple periods in the address name. Until they fix it I will use the work around to the Recipients check to make it work.