With the code below I am able to send a single email from Access through Novell’s Groupwise. If I want to send the same email to multiple addressees I can either duplicate the following line –
.Recipients.Add Addressee@Addressee.com – for the number of addressees that I have or I can loop through a recordset and send each addressee an email.
I have looked at several examples of sending emails with Groupwise, including the code Charlotte provided and code from Dev Ashish’s site.
What I would like to know is, when you don’t know how many addressees are going to be used, is there a way to send one email with multiple addressees?
With New GroupwareTypeLibrary.Application
With .Login
With .MailBox.Messages.Add(Class:=”GW.MESSAGE.MAIL”)
.Subject.PlainText = “Subject of Email”
.BodyText.PlainText = “Body of the Email”
.Recipients.Add “Addressee@Addressee.com”
.Recipients.Resolve
.Send
End With
End With
.Quit
End With
Thanks