Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 June 21st, 2005, 05:34 PM
Registered User
 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Email for all records



I have this ASP page which has some records in a record set
 One of the field is email
 How can I send emails to all of them, one by one
 I also have a check box for each row, if that checkbox is selected for that row then the email should be sent

Please help

Thanks:)

 
Old June 21st, 2005, 05:49 PM
Registered User
 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sdas



I have this ASP page which has some records in a record set
One of the field is email
How can I send emails to all of them, one by one
I also have a check box for each row, if that checkbox is selected for that row then the email should be sent
 Please tell me how to cycle through the recordset for the checked records and send emails

Please help

Thanks:)

 
Old June 23rd, 2005, 04:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

What is the value you have for all those check boxes and how many such checkboxes are there. If the list is not huge, after selecting those checkboxes and on click of form's submit button, Request.form("checkbox_name") would return the list of values that you have checked in the form. You got to loop through to get those values one by one and mail the contents using CDOSYS(check microsoft site for code samples), if the content is static and to be sent to all at one shot, you can use all those email ids separated by comma and can be sent at one go.

Hope that helps.
Cheers

_________________________
- Vijay G
Strive for Perfection
 
Old June 23rd, 2005, 12:22 PM
Registered User
 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
 The number of checkboxes are dynamic
 Typically I have around 1200 checkboxes
 Now, if I click a send mail button, I need to check each check box present in each row, if the checkbox is checked, the email should be sent.
A sample code will be helpful.

Thanks:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Email a report only if there are records to view JuliusMoreland Reporting Services 0 July 11th, 2006 04:51 PM
ASP EMAIL tommyt ASP.NET 1.0 and 1.1 Basics 1 June 20th, 2006 10:31 PM
Previous/Next records in asp Nicky2k Classic ASP Basics 2 January 24th, 2004 05:39 AM





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