>Whoops.. My Bad..
>
>1. yes, you could do that...
>
>2.
>
>** Message Recipients
>oRecipients = oMessage.Recipients
>
>Heres the part that was missing
>
>oRecipients.AddByDisplayName('E-Mail Name')
>oRecipients.Resolve
>oMessage.SEND
>
>I created a small Classlib that does this so I can pass
>more than one user name and stuff into it.. I'll get
>back to you on the attachments.
>
>Cya!
>Bob
Bob and Ria,
My biggest hurdle was actually in the Name Resolution for recipients. This would be the section that would usually bomb or only work intermittantly. The following code was what I sucessfully used for adding and then resolving an array of EMail addresses.
*!* GWRecip is an array of EMail Addresses
*!* Address can be Internet Address such as
anybody@hotmail.com or
*!* GroupWise Addresses such as Domain.PostOffice.UserID
*!* for example -- Dom01.P0100.Anybody (capitalization doesn't matter)
*!* NamesToAdd = the number of addresses in GWRecip
for i = 1 to NamesToAdd
cSendTo = alltrim(GWRecip(i))
if ATC("@",cSendTo) > 0 && Is this in InterNet Email Address
cSendTo = "SEAGOV1:" + cSendTo && add our GW Internet Gateway Name
endif
loRecipients = oMessage.Recipients.add(cSendTo,"NGW",'0')
next
loRecipients.Resolve()
oMessage.send