Jump to content

Sending an Email via Outlook (Visibly)


Recommended Posts

I can use the following to send an Email via outlook. How do I make it visible?

$oOApp.visible = 1 ;does not work

CODE
const $olMailItem=0

$oOApp = ObjCreate("Outlook.Application")

$oOMail = $oOApp.CreateItem($olMailItem)

$oOMail.Save

With $oOMail

.To = ("name@email.com")

.Subject = "TEST"

.Body = "Hi this is a test"

.attachments.add ("c:\file.fil")

.Send

EndWith

[topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner!
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...