Hi I borowed this code from a post here. I'd like to add an attachment to the emails sent, Does anyone know if this is possible and if so what the syntax is?
Code:
Dim Users(2)
Users(0) = "Fred@test.com"
Users(1) = "Bob@test.com"
Users(2) = "Pete@test.com"
For i = 0 to 2
Set objOutlk = createobject("Outlook.Application")
Set objMail = objOutlk.createitem(0)
objMail.To = Users(i)
objMail.subject = MailSubject
objMail.body = MailBody
objMail.send
Next