<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.autoitscript.com/w/index.php?action=history&amp;feed=atom&amp;title=OutlookEX_UDF_-_Forward_Items</id>
	<title>OutlookEX UDF - Forward Items - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.autoitscript.com/w/index.php?action=history&amp;feed=atom&amp;title=OutlookEX_UDF_-_Forward_Items"/>
	<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;action=history"/>
	<updated>2026-05-03T23:32:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=14844&amp;oldid=prev</id>
		<title>Water at 09:26, 27 July 2023</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=14844&amp;oldid=prev"/>
		<updated>2023-07-27T09:26:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:26, 27 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:UDF]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:UDF]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Outlook]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here you&amp;#039;ll find detailed information on how to forward items to other recipients.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here you&amp;#039;ll find detailed information on how to forward items to other recipients.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Function _OL_ItemForward ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Function _OL_ItemForward ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Water</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=13532&amp;oldid=prev</id>
		<title>Water at 19:49, 3 October 2016</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=13532&amp;oldid=prev"/>
		<updated>2016-10-03T19:49:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:49, 3 October 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;OutlookEX_UDF&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;UDF&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here you&amp;#039;ll find detailed information on how to forward items to other recipients.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here you&amp;#039;ll find detailed information on how to forward items to other recipients.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Function _OL_ItemForward ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Function _OL_ItemForward ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Water</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=11556&amp;oldid=prev</id>
		<title>IEvKI3gv9Wrkd41u: +Category:OutlookEX_UDF</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=11556&amp;oldid=prev"/>
		<updated>2013-01-21T12:58:01Z</updated>

		<summary type="html">&lt;p&gt;+Category:OutlookEX_UDF&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 21 January 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:OutlookEX_UDF]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here you&amp;#039;ll find detailed information on how to forward items to other recipients.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here you&amp;#039;ll find detailed information on how to forward items to other recipients.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Function _OL_ItemForward ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Function _OL_ItemForward ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>IEvKI3gv9Wrkd41u</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=10605&amp;oldid=prev</id>
		<title>Rt01: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=OutlookEX_UDF_-_Forward_Items&amp;diff=10605&amp;oldid=prev"/>
		<updated>2012-05-12T13:17:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here you&amp;#039;ll find detailed information on how to forward items to other recipients. &lt;br /&gt;
== Function _OL_ItemForward ==&lt;br /&gt;
Creates a copy of the specified item (contacts, appointments ...) which then can be forwarded to other recipients.&amp;lt;br&amp;gt;&lt;br /&gt;
You have to add recipients to this copy of the item (function _OL_ItemRecipientAdd) and then have to use function _OL_ItemdSend to actually send (forward) the item.&amp;lt;br&amp;gt;&lt;br /&gt;
If you like you can add some additional text before you forward the item.&lt;br /&gt;
== Example ==&lt;br /&gt;
This example gets a list of unread mails in the inbox and forwards them to recipient &amp;quot;John.Doe@company.com&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;autoit&amp;quot;&amp;gt;&lt;br /&gt;
; Include Functions&lt;br /&gt;
#include &amp;lt;OutlookEX.au3&amp;gt;&lt;br /&gt;
Global $oForward, $sRecipient = &amp;quot;John.Doe@company.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; Connect to Outlook&lt;br /&gt;
Global $oOutlook = _OL_Open()&lt;br /&gt;
If @error &amp;lt;&amp;gt; 0 Then Exit MsgBox(16, &amp;quot;Connect to Outlook&amp;quot;, &amp;quot;Error connecting to Outlook. @error = &amp;quot; &amp;amp; @error &amp;amp; &amp;quot;, @extended = &amp;quot; &amp;amp; @extended)&lt;br /&gt;
&lt;br /&gt;
; Access correct mailbox&lt;br /&gt;
Global $aFolder = _OL_FolderAccess($oOutlook, &amp;quot;\\Correct Mailbox\Inbox&amp;quot;, $olFolderInbox)&lt;br /&gt;
If @error &amp;lt;&amp;gt; 0 Then Exit MsgBox(16, &amp;quot;Folder access&amp;quot;, &amp;quot;Error accessing the mailbox. @error = &amp;quot; &amp;amp; @error &amp;amp; &amp;quot;, @extended = &amp;quot; &amp;amp; @extended)&lt;br /&gt;
&lt;br /&gt;
; Get unread items&lt;br /&gt;
Global $aItems = _OL_ItemFind($oOutlook, $aFolder[1], $olMail, &amp;quot;[UnRead]=True&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;EntryID,Subject,Body&amp;quot;)&lt;br /&gt;
If @error &amp;lt;&amp;gt; 0 Then Exit MsgBox(16, &amp;quot;Item find&amp;quot;, &amp;quot;Error searching for unread mail items. @error = &amp;quot; &amp;amp; @error &amp;amp; &amp;quot;, @extended = &amp;quot; &amp;amp; @extended)&lt;br /&gt;
MsgBox(0, &amp;quot;Number of unread items&amp;quot;, $aItems[0][0])&lt;br /&gt;
If $aItems[0][0] = 0 Then Exit MsgBox(16, &amp;quot;Error&amp;quot;, &amp;quot;No mail items in Correct Mailbox Inbox.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
; Forward all unread mails&lt;br /&gt;
For $i = 1 To $aItems[0][0]&lt;br /&gt;
    $oForward = _OL_ItemForward($oOutlook, $aItems[$i][0], Default, &amp;quot;&amp;quot;) ; Create a copy of the item to forward&lt;br /&gt;
    If @error &amp;lt;&amp;gt; 0 Then Exit MsgBox(16, &amp;quot;Item forward&amp;quot;, &amp;quot;Error creating an item copy to forward. @error = &amp;quot; &amp;amp; @error &amp;amp; &amp;quot;, @extended = &amp;quot; &amp;amp; @extended)&lt;br /&gt;
    _OL_ItemRecipientAdd($oOutlook, $oForward, Default, $olTo, $sRecipient) ; Add recipient&lt;br /&gt;
    If @error &amp;lt;&amp;gt; 0 Then Exit MsgBox(16, &amp;quot;Recipient add&amp;quot;, &amp;quot;Error adding a recipient to the mail item. @error = &amp;quot; &amp;amp; @error &amp;amp; &amp;quot;, @extended = &amp;quot; &amp;amp; @extended)&lt;br /&gt;
    _OL_ItemSend($oOutlook, $oForward) ; Send the item to the recipient&lt;br /&gt;
    If @error &amp;lt;&amp;gt; 0 Then Exit MsgBox(16, &amp;quot;Item send&amp;quot;, &amp;quot;Error sending the mail item. @error = &amp;quot; &amp;amp; @error &amp;amp; &amp;quot;, @extended = &amp;quot; &amp;amp; @extended)&lt;br /&gt;
Next&lt;br /&gt;
&lt;br /&gt;
; Close connection to Outlook&lt;br /&gt;
_OL_Close($oOutlook)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rt01</name></author>
	</entry>
</feed>