Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2006, 02:11 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default objCDO.bCc with multi emails

How do you use this object function with multiple email adresses and strings?

Iv tried

objCDO.bCc = strFirstname, strSecondName
objCDO.bCc = strFirstname; strSecondName
Request.Form("FriendTwo"),Request.Form("FriendThre e")
Request.Form("FriendTwo");Request.Form("FriendThre e")

nothing works

using ASP.net and VB on server...

ERROR----

Compiler Error Message: BC30205: End of statement expected.

Source Error:

Line 16: objCDO.From = Request.Form("FromEmail")
Line 17: objCDO.To = Request.Form("FriendOne")
Line 18: objCDO.bCc = Request.Form("FriendTwo"),Request.Form("FriendThre e")
Line 19: objCDO.Subject = "Check out this Send-To-Friend Tutorial!"
Line 20: objCDO.Body = strFrom

ERROR----


please help
s
 
Old December 31st, 2006, 01:34 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

objCDO.bCc = strFirstname & ";" & strSecondName & ";" & Request.Form("FriendThree") &";"

And so on.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Bcc problem mohana VB How-To 0 December 5th, 2006 09:17 AM
multi-multi-multiple Insert with subquery??? jmjyiannis SQL Server 2000 1 May 5th, 2006 02:20 PM
Multiple Bcc email addresses peterasimpson VB How-To 3 March 5th, 2006 09:53 PM
validating emails.... muskaanbajaj ASP.NET 1.0 and 1.1 Basics 3 October 13th, 2005 05:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.