Can I use the code below to send to a list of e-mail addresses? How do I augment what I already have? Thank you.
Public Sub Command0_Click()
Dim otk As Outlook.Application
Dim eml As Outlook.MailItem
Set otk = CreateObject("Outlook.Application")
Set eml = otk.CreateItem(olMailItem)
With eml
.To = [strEmail]
.Subject = "Test Message"
.Body = "This is a test."
.Attachments.Add "C:\test.doc"
.Send
End With
Set eml = Nothing
otk.Quit
End Sub
Public Sub Command0_Click()
Dim otk As Outlook.Application
Dim eml As Outlook.MailItem
Set otk = CreateObject("Outlook.Application")
Set eml = otk.CreateItem(olMailItem)
With eml
.To = [strEmail]
.Subject = "Test Message"
.Body = "This is a test."
.Attachments.Add "C:\test.doc"
.Send
End With
Set eml = Nothing
otk.Quit
End Sub