Jump to content

gigahacker

Members
  • Posts

    1
  • Joined

  • Last visited

gigahacker's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. All, I am not a programmer but I play one when needed. I have written a bunch of small autoit scripts but I am having trouble with this one. OutlookEX UDF - I have written and script to send e-mails (at work) to request 400 license files. One every 10 seconds (server limits). The issue is only my boss can request them. If he is not in, no one else can run the script. I have in my outlook a "send as" option to send a request as him. This is NOT a different account nor is it a "Send on Behalf of" it is a "Send As". This works as a "Send on Behalf of" but can't find code to "Send As" #include <OutlookEx.au3> ; Open the connection to Outlook Global $oOL = _OL_Open() ; Create a mail item and set some properties Global $oItem = _OL_ItemCreate($oOL, $olMailItem, "", "", "Subject=TestMail", "BodyFormat=" & $olFormatHTML, "HTMLBody=Bodytext in <b>bold</b>.", "SentOnBehalfOfName=Last_him, First_Him [EXP] xxx/US") ; Add a recipient and resolve it _OL_ItemRecipientAdd($oOL, $oItem, Default, $olTo, "Last, First [EXP] xxx/US") ; Send the mail _OL_ItemSend($oOL, $oItem) If @extended = -2147352567 Then _ MsgBox(16, "OutlookEX UDF - Example Script", "You don't have permission to send the mail on behalf of the specified person!") _OL_Close($oOL)
×
×
  • Create New...