Hi, I did the same for sending every morning a Mail.
I used Outlook Express (no need for an additional Office License).
It' s configured as a client.
if FileExists("S:\sicher\sicher.zip") Then
; Run Outlook
Run("C:\Programme\Outlook Express\MSIMN.EXE")
; Wait for the Outlook become active
WinWaitActive("Outlook Express")
; Now that the Outlook window is active type some text
Sleep(500)
Send("!d")
; new message
send("n")
send("e")
Sleep(500)
winwaitActive("Neue Nachricht"); English: winwaitActive("New message")
; Enter Mail adress
send("xxx@xfdsjgk.com")
sleep(500)
send("+{Tab 2}")
sleep(500)
; Subject
send("Files")
sleep(500)
send("+{Tab 3}")
sleep(500)
; a short text
send("The daily files")
sleep(500)
; Attach files
send("!i")
send("a")
sleep(500)
send("s:\sicher\sicher.zip"); insert here the path to your file - If more then one file use semicolon to add next file
sleep(500)
send("!e")
sleep(500)
; Now send the Mail
Send("!s")
; Quit Outlook Express
sleep(500)
send("!d")
send("b")
Hope it helps.
I know it's not perfect, but it works great. If someone has a shorter Version of it, just message me.
CU @ ALL
-[-Gun-Food-]-