Jump to content
water

OutlookEX UDF - Help & Support (IV)

Recommended Posts

Strange :( Now we have reached the end of my wisdom. Don't know what the next step should be.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Taks Scheduler (NEW 2019-09-14 - Version 0.5.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Master, your wisdom has not yet come to an end. There is simply more to learn. :)

My understanding is limited. From what I understand one must

  • Explicitly state the encoding text/plain multipart/alternative etc
  • Repeat for each section

My understanding of the code is also limited.

Sequentially, WHEN must these calls be made? Perhaps our method is wrong?

  1. Create object
  2. MIME
  3. Add body
  4. MIME
  5. Add Attachment
  6. MIME
  7. etc?

How?


Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites

My understanding is even more limited :(

I haven't done more than to write a function which tells Outlook to create a mail (either text or html). I have no knowledge about how the internals (Mime etc.) work. Everything I know I got from Google ;)

Playing with the internals would (at least) need:

  • A clearly defined goal. Means: An example that defines how the result should look like (html text, attachments ...).
    So there is something to play with and that tells when the goal has been reached.
  • A clearly defined environment where the mail as defined in #1 should be correctly displayed  (Outlook, Google mail, Thunderbird ...)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Taks Scheduler (NEW 2019-09-14 - Version 0.5.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Posted (edited)

Am I doing something wrong? I'm trying to save an email item to the desktop using this code... which works only if I remove the _OL_ItemSave flag ... (32)

; 'Get Outlook'
Local $oOL = _OL_Open()
; 'Get Sent items Folder'
Local $folderProperties = _OL_FolderAccess($oOL, Default, $olFolderSentMail)
If ErrMsg(@error, "_OL_FolderAccess -- " & @extended) Then Exit

Debug("Folder Path: " & $folderProperties[5])

; 'Find items with 'MY SUBJECT' as subject and get their EntryIDs'
Local $entryIds = _OL_ItemFind($oOL, $folderProperties[1], $olMail, "", "Subject", "MY SUBJECT", "EntryID")
If ErrMsg(@error, "OL Item Find: " & @extended) Then Exit

If UBound($entryIds) > 1 Then
    ; 'Save the mail item as a message and (return the full path of the item ==> 32)'
    Debug(_OL_ItemSave($oOL, $entryIds[1][0], $folderProperties[3], @DesktopDir & "\", $olMSG, 32))
    ErrMsg(@error, "OL Item Save: " & @extended)
Else
    Debug("Not an array. Failed.")
EndIf

Edit: It doesn't save the item if I remove the flag, sorry :)

Edited by seadoggie01

Share this post


Link to post
Share on other sites

Got it :)

Flag 32 just tells to return the full path. But none of the flags that tells the function what to do is set.
So it should be at least 33: 1 (save the item) + 32 (Return the full path)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Taks Scheduler (NEW 2019-09-14 - Version 0.5.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Will add a comment to the UDF ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Taks Scheduler (NEW 2019-09-14 - Version 0.5.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Skysnake
      This assumes implementation of the OutlookEX UDF.
      I have PSTs which are becoming unmanageable 
      The idea is to make a simple GUI (Listview) which can combine non-Outlook data and include emails based on criteria.  Manage them in the GUI (delete / reply etc) and update to Outlook.
      So the issue would be to manage the items in the GUI while using the PST as a database.
      Ideas on how to do this? What would the key be?
    • By Reizvoller
      Howdy!
      I've been reading through the OutLookEX documentation and examples for the past two days ( VERY well documented, very clear! ) 
      https://www.autoitscript.com/wiki/OutlookEX_UDF_-_General
       
      But I've had trouble locating information on specifying what user to use. My outlook is linked to two email accounts and I can only manipulate the main account's stuff. A simple script I've been playing with is this 
      ; Include Functions #include <OutlookEX.au3> ; Connect to Outlook Global $oOutlook = _OL_Open() If @error <> 0 Then Exit MsgBox(16, "Connect to Outlook", "Error connecting to Outlook. @error = " & @error & ", @extended = " & @extended) ;List the folders Global $aResult = _OL_FolderTree($oOutlook, "*") If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_FolderTree Example Script", "Error accessing root folder. @error = " & @error) _ArrayDisplay($aResult, "OutlookEX UDF: _OL_FolderTree Example Script - All folders") It works like a charm but it only returns my main account's folders. 
      I really hope I didn't overlook a wiki page or help file... 
      Any assistance would be greatly appreciated!
      -Reiz
    • By galan2015
      Is there any solution on receiving e-mails? I would like to create a script so that I will not have to log in through the browser.
×
×
  • Create New...