CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Mailing users from grid list

Print topic Send  topic

Author Message
headhunter


Posts: 130
Posted: 09/13/2004, 12:00 AM

I have a grid with course subscriptions of several customers.
Now, what I want to do is filter this list for a specific course and then be able (by selecting customers via a check box or something) to mail these customers with a single mail. Thus mail to all selected customers.

I know how to do it to a single user.

Does anyone know how to do this?
Project: PHP CCS2 MySQL
http://www.djansa.be

Thanx
View profile  Send private message
headhunter


Posts: 130
Posted: 09/13/2004, 1:49 PM

This is maybe a better option:

http://www.2k2studios.com/phptesting/mailinglist/mailscript.html

Can this be done in ccs? (Offcourse it can...)
View profile  Send private message
headhunter


Posts: 130
Posted: 09/14/2004, 3:38 PM

I found out myself:

http://ccs.ath.cx/bb/viewtopic.php?t=166
View profile  Send private message
Nicole

Posts: 586
Posted: 09/17/2004, 2:19 AM

Hello guys,
Just a hint of you decide to use less manual coding.
You can use CCS editable grid for this purpose, storing email address in Hidden field and using checkbox for selecting users. In form’s Before Submit or button’s onClick event run through the records and send mail, e.g.:
  
global $form_name;  
//retrieve selected values  
for($RowNumber = $form_name->TotalRows - $form_name->EmptyRows; $RowNumber <= $form_name->TotalRows; $RowNumber++)  
       {  
 $checkbox_name[$RowNumber] = CCGetFromPost("checkbox_name_" . $RowNumber);  
if ($checkbox_name[$RowNumber]== 1)  
{  
//send mail code.  
// Retrieve email from Hidden field using   
// CCGetFromPost("HiddenName_" . $RowNumber)  
}  

_________________
Regards,
Nicole
View profile  Send private message
viktor
Posted: 09/24/2004, 6:17 AM

Quote Nicole:
Hello guys,
Just a hint of you decide to use less manual coding.
You can use CCS editable grid for this purpose, storing email address in Hidden field and using checkbox for selecting users. In form’s Before Submit or button’s onClick event run through the records and send mail, e.g.:
  
global $form_name;  
//retrieve selected values  
for($RowNumber = $form_name->TotalRows - $form_name->EmptyRows; $RowNumber <= $form_name->TotalRows; $RowNumber++)  
       {  
 $checkbox_name[$RowNumber] = CCGetFromPost("checkbox_name_" . $RowNumber);  
if ($checkbox_name[$RowNumber]== 1)  
{  
//send mail code.  
// Retrieve email from Hidden field using   
// CCGetFromPost("HiddenName_" . $RowNumber)  
}  


Is it all code? loooks like there should be something more after //send mail code..

Can anybody clarify?

Thanks! Very nice tip... hopefully when works :-)
:-)

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.