hmmmm...
This works. It is depending on outlook being installed and configured. It also shows a warning that something or someone is trying to access outlook. Have to find a way to disable that. Not pretty but it works.
Taken from the FAQ.
Code:
$Root = CreateObject("Outlook.Application")
$MailItem = $Root.CreateItem(0)
;0 = low importance, 1 = normal importance, 2 = high importance.
$MailItem.Importance = 1
$MailItem.Subject = "Automation Test"
$MailItem.To = "to@@domain.nl"
$MailItem.Body = "Test"
If Exist("d:\test\23506.jpg")
$MailItem.Attachments.Add("d:\test\23506.jpg")
EndIf
$MailItem.Send
$Root = 0
[edit]
Looks like I can’t specify a from address.
Now it sends on behalf of the logged on account.
So it does not work as I want it to. 
[/edit]
Edited by Mart (2006-10-20 03:02 PM)
_________________________
Mart
- Chuck Norris once sold ebay to ebay on ebay.