Jump to content

OutlookEX UDF - Help & Support (II)


water
 Share

Recommended Posts

Sorry for the delayed response. Only get to work on this while at work.

I found out why I was still showing the old version.  I have corrected the issue with version 0.10.0.0.

Problem still exists. Errors have changed.

If Outlook is open and I run the script I get a 6002 error and the full email is left in the outbox.  If Outlook is closed and I run the program, I get a 4000 error and a partial email is left in the outbox.  The partial has nothing in the TO field and nothing in the body, only a subject line.

Attached is what add-ins we are running as the base install for our Outlook.

I really think that it is an issue with our exchange server, but I could be wrong.  Is there a way with the Outlookex.udf to open an email visible to the user with all the information added and allow them to hit the send button?  I'm wondering if this might correct the problem for now by allowing them to resolve the issue right then.  Right now they have to go into their Outbox, open the email and manually click send.

I have also determined it is not just this one person affected.  I have another email address that I'm using for testing and it does it on that one as well. Same issue, cannot resolve due to an address close to it.

 

post-69066-0-60060200-1384271828_thumb.j

Link to comment
Share on other sites

Is there a way with the Outlookex.udf to open an email visible to the user with all the information added and allow them to hit the send button?

Sure.

You have to either create your own version of _OL_Wrapper_SendMail and add

$oItem.Display()

replacing

; Send mail
_OL_ItemSend($oOL, $oItem, Default)
If @error Then Return SetError(@error + 6000, @extended, 0)

Or you add the function calls wrapped in _OL_Wrapper_SendMail directly to your script.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

That method didn't work.  It gives us the Active Sync error we previously encountered.

COM Error Encountered in ResponseTest.au3
OutlookEx UDF version = 0.9.0
@AutoItVersion = 3.3.8.1
@AutoItX64 = 0
@Compiled = 0
@OSArch = X64
@OSVersion = WIN7
Scriptline = 84
NumberHex = 80020009
Number = -2147352567
WinDescription =
Description = Sorry, Exchange ActiveSync doesn't support what you're trying to do.
Source = Microsoft Outlook
HelpFile =
HelpContext = 0
LastDllError = 0

Link to comment
Share on other sites

I wonder what line 84 is. It is not in the script I posted and in the UDF it is a comment line.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Sorry that was your logic in our test script.  Line 84 mapped to the $oReply.Save() in the _OL_ItemReplyEX method.

I retried using your vanilla script and got the same error on line 53 which is the same $oReply.Save() in the _OL_ItemReplyEX method.
 

Link to comment
Share on other sites

Thanks for the the line on how to Display the item.  I copied the _OL_Wrapper_SendMail function and created the _OL_Wrapper_SendMailDisplay function in the Outlookex.au3 file and made the change to display.  This seems to be the best work around for right now. 

I was looking at the _OL_ItemSend function and the 6002 error seems to be generating from there, but the extended doesn't have anything, just show 0.

I will be looking into this a bit more with a co-worker that also work with autoit and see if he see's something I don't see.

Link to comment
Share on other sites

Sorry that was your logic in our test script.  Line 84 mapped to the $oReply.Save() in the _OL_ItemReplyEX method.

I retried using your vanilla script and got the same error on line 53 which is the same $oReply.Save() in the _OL_ItemReplyEX method.

 

Strange. Maybe it's a bug?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

I think it is more a security feature has been enabled on Outlook via Group Policy or through the exchange server that if say an external program is accessing Outlook it wants you to verify the recipients if they are close to someone else.

It works on other email addresses just fine, just not when two or more are similar. Not sure how to make Outlook resolve. Even tried moving the email address from the first position to the second and got the same result. 

Edited by Malkavian99
Link to comment
Share on other sites

You could use function _OL_ItemRecipientCheck to check the recipients.

The function returns a 2D array with a row for every recipient. If one of the recipients couldn't be resolved ($aResult[$i][1] = False) then call _OL_ItemRecipientSelect to let the suer select the correct recipient.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Should I run that right before doing the sendmail wrapper using the recipients list?  I will read up on that.  I have been looking at our AD accounts for the two people and found some oddities concerning the other person.  I think the reason it is not resolving is certain things are not correct for the other person due to a recent name change.  I am working to get them corrected and see if that doesn't fix the issue.

Link to comment
Share on other sites

As I have no active sync to test I suggest to stick with the working solution ;)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Should I run that right before doing the sendmail wrapper using the recipients list?  I will read up on that.  I have been looking at our AD accounts for the two people and found some oddities concerning the other person.  I think the reason it is not resolving is certain things are not correct for the other person due to a recent name change.  I am working to get them corrected and see if that doesn't fix the issue.

The idea is to check the recipients, select the correct one when Outlook couldn't resolve it and then pass the objects to the wrapper.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

If they are going to fix it in the next few days I would wait for the settings to be changed. My solution is a bit complex and I'm not 100% sure it works.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

I see. Good luck :sweating:

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

If it is a feature (and won't go away) we would need some time to code and test my "solution".

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...