Thanks for the correction... Since this is a Novell API, your administrator shouldn't complain :)
Bob
>>Hello Nadya and Sandy,
>>
>>Thanks for the code snippet, worked OK but I streamlined it abit. I am using
>>
>>=GW('RPierce@Smooth-On.com','SUBJECT HERE','TEXT MESSAGE HERE ','C:\PICT.JPG')
>>
>>PROCEDURE GW
>> LPARAMETERS cSendTo,cSubject,cMessage,cAttachment
>> oGW=CREATEOBJECT('NovellGroupwareSession')
>> oMsg=oGW.Login.RootFolder.Messages.Add
>> oMsg.Subject=cSubject
>> oMsg.BodyText=cMessage
>> oMsg.Attachment<b>s</b>.Add(cAttachment)
>> oMsg.Recipients.Add(cSendTo,'NGW','0')
>> oMsg.Send
>> RELEASE oGW
>>
>>If you look on Novell's site using 'NovellGroupwareSession' as a search you get some relevant stuff with examples with tons of code, boils down to the above and works well for me.
>>
>>Thanks Sandy
>
>I tried this code and it works fine on my machine (I corrected Attachment to Attachments). I haven't searched Novell site yet, but I think, this would be enough.
>
>Thanks a lot to everyone.
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'