Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending an email to more than one CC recipient

Status
Not open for further replies.

humvie

Technical User
Aug 14, 2002
61
CA
I have the following code that works fine if I have only one email address but want to sometimes include more than one address. The addresses are stored in a table and retrieved through a form when a customer is selected. Text91 and Text87 (are both on the form).
Code:
.To = StrEmail
    Do While Not rsCC.EOF
    strCC = Nz(Text91) 'and Nz(Text87)
       .CC = strCC
    End If
    rsCC.MoveNext
    Loop
    rsCC.Close
.BCC = "address2@hotmail.com"
.Subject = "topic of discusion"
.Body = "Text goes here..."
.Send


Thanks in advance for your help.

 
This has been answered in a post earlier this month. Try searching for the topic.
 
Hi humvie,

I answered a similar question in another thread. check it out and let me know if it helps.

thread702-709010


Have A Great Day!!!, [bigglasses]

Nathan
Software Testing Lead
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top