Click to See Complete Forum and Search --> : Question about emails using CDO


st3ady
12-09-2006, 01:00 PM
Lets say I want to send an email to two different people without making a new object. and I don't want them in a database. something like

With objCDO
.To = "buddy1@website.com, buddy2@website.com"
.From = fromStr
.Subject = subject_line
.HtmlBody = email_body
.Send
End With

Is this a valid structure. Or if I use the CC how many can I put in there? Thx :cool:

so_is_this
12-09-2006, 01:13 PM
Yes, a comma-delimited string is the correct syntax for either the To or Cc fields.