Jump to content

Recommended Posts

Posted

Hi,
my script looks like this right now. 
 

$oOApp = ObjCreate("Outlook.Application")
$olMailItem = 0
$oOMail = $oOApp.CreateItem($olMailItem)
$oOMail.Save
$oOMail.To = (john@john.com)
$oOMail.Subject = "test subject"
$oOMail.Body = "body text"
$oOMail.Send

Now I'm searching for a way to put a "reply-to" adress in. Is it possible?

 

thx
kawumm

  • Moderators
Posted

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

  Quote

General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Expand  

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Did you have a look at my OutlookEX UDF? Download etc. can be found in my signature.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

You'll need to use the MailItem.ReplyRecipients propery... it is a collection of recipient-objects that you can edit. 

; Get the Recipients object
Local $oReplyRecipients = $oMailItem.ReplyRecipients
; Add an email address or name (to be resolved)
$oReplyRecipients.Add("your.email@address.com")
; Get a Recipient object with .Item (1-based index)
ConsoleWrite("Removing: " & $oReplyRecipients.Item(1).Name)
; Remove a recipient (1-based index)
$oReplyRecipients.Remove(1)

 

Edited by seadoggie01

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

  Reveal hidden contents
Posted

You need to add a COM error handler to your script to get better error information. Please check ObjEvent in the help file.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

I just noticed that ReplyRecipients are missing in the OutlookEX UDF.
Is this something I should add?

My UDFs and Tutorials:

  Reveal hidden contents

 

  • 2 weeks later...
Posted

ReplyRecipient has been added to version 1.5.0.0 of the UDF. You simply need to set the type parameter to $olReplyRecipient.
More details can be found on the download page or the history.

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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