Sign in to follow this  
Followers 0
tsystems

Using OutlookEX UDF, how can I copy body and headers to clipboard?

6 posts in this topic

I just need to copy the body and from/to lines of the latest sent email to the clipboard or a variable or whatever. I've perused the OutlookEX UDF wiki but it is not clear to me. Could somebody please throw me a snippet of code or something?

Share this post


Link to post
Share on other sites



Do you create and send the mail using the OutlookEX UDF?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Agua,

The emails are created manually. A template is opened, filled, and sent. I would like to automate the following subsequent 3 steps which we are currently doing manually: Open sent email, hit reply/forward, ^a^c, close two windows, paste into reporting tool and then replace two sensitive lines with asterisks.

Thanks for the reply!

Share this post


Link to post
Share on other sites

If you want to start your script as soon as a mail has been sent you should have a look at Outlook events.

Example script _OL_Example_SentMail_Event.au3 shows how to grab each sent mail (the coding is not perfect and needs to be changed before using in production).

You then have the object of the sent mail and can use function _OL_ItemGet to retrieve properties Body, From and To.

Is this what you are looking for?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Every function of the UDF comes with a help file (function.html) and an example (function.au3)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

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
Sign in to follow this  
Followers 0