Sign in to follow this  
Followers 0
KenNichols

Sending an Email via Outlook (Visibly)

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



Try .Display instead of .Send

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