We get some insight from -
Attachments Object

quote:

To ensure consistent results, always save an item before adding or removing objects in the Attachments collection of the item.

Try this:

code:
break on
:Email
$Root = CreateObject("Outlook.Application")
$MailItem = $Root.CreateItem(0)
$MailItem.Importance = 1
$MailItem.Subject = "Someheader"
$MailItem.To = "me@@mydomain.com"
$MailItem.Body = "SomeText for the body"
$MailItem.Attachments.Add("PathToFile1")
$MailItem.Save
$MailItem.Attachments.Add("PathToFile2")
$MailItem.Body = "This is a test.@CRLF@CRLF"
$MailItem.Send
$Root = 0

Please reply if this works as I will update the FAQ with this info.

HTH,

Kent

[ 13. May 2003, 21:00: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's