Jump to content

Forward Outlook message


Recommended Posts

Hello,

I am trying to get an object for an active Outlook mail item, then create a mail item to forward it. I can't figure out how to do this, and am hoping for help!

Here's my start:

Local $mailtitle, $oOApp, $mail
Opt("WinTitleMatchMode", 2)
WinWaitActive ( "Message")
$mailtitle = WinGetTitle ("Message")

$oOApp = ObjCreate("Outlook.Application")
$mail = ObjGet ($mailtitle & ".html")

I get that "$mail" is not an object, so am stumped there. Please help!

Link to comment
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
 Share

  • Recently Browsing   0 members

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