Jump to content

Outlook MAPI --> Create new E-Mail item with "SenderAdress" or smth


GtaSpider
 Share

Recommended Posts

Hey there,

I have a little issue with my script, and I dont know how to go on.

Is there a possibility to create a new E-Mail Item in the Inbox of Outlook (2010) which looks like an realistic E-Mail and when you click on "Answer" Outlook will answer to this address?

I want to copy automaticly some E-mails from PC 1 to PC 2.

Here is what i got so far:

$oOutlook = ObjCreate("Outlook.Application")
$oOl = $oOutlook.CreateItem($olMailItem)
$oFolder = $oOutlook.GetNamespace("MAPI").GetDefaultFolder ($olFolderInbox)
With $oOl
    .To =("blabla@autobahn.de")
    .SentOnBehalfOfName = ("blublu@tbonesteak.com")
    .save
    .Move($oFolder)
EndWith

Thanks ;)

Greetz

Spider

www.AutoIt.de - Moderator of the German AutoIt Forum

 

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...