|
ou812 -> RE: Ubound error (6/3/2005 12:36:26)
|
I'm headed out the door, so real quick - what you want to do is loop through your names, then for each name you want to send the email (not build up the list, as we were). Then clear out the recipients, add a new email name and send another, until you loop through all of the names. So, there is no need for BCCing anymore, just add to the TO, then send, reset the values, and add to the To, and send again... Something like this:
Do
' Reset all of the addressing to nothing
Mail.reset
Mail.From = "academy@anmt.org" ' From address
Mail.AddAddress "info@anmt.org"
NextComma = InStr(vEmails, ",")
If NextComma = 0 Then
Mail.Addaddress Trim(vEmails)
Mail.Send
Exit Do
End If
Address = Left(vEmails, NextComma - 1)
Mail.Addaddress Trim(Address)
vEmails= Mid(vEmails, NextComma + 1)
Mail.Send
Loop
I wrote this real quick, so there may be a syntax, or logic, error, but it should give you the idea.
|
|
|
|