;#AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
;#AutoIt3Wrapper_AU3Check_Stop_OnWarning=N
#include <OutlookEX.au3>

;$iOL_Debug = 2
Global $oOutlook = _OL_Open()

; *****************************************************************************
; Example 1
; Send a html mail to the current user.
; Add an attachment and set importance to high.
; *****************************************************************************
$sTO="mein email"
_OL_Wrapper_SendMail($oOutlook,$sTO,"","","TestSubject","Body<br><b>fett</b> normal.",@ScriptDir & "\Loste.txt", $olFormatRichText, $olImportanceHigh)
If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OutlookSendMail Wrapper Script", "Error sending mail. @error = " & @error & ", @extended: " & @extended)
MsgBox(64, "OutlookEX UDF: _OutlookSendMail Wrapper Script", "Mail successfully sent to user Guy !")