CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Sending Email to Group of People

Print topic Send  topic

Author Message
Help
Posted: 11/11/2003, 5:15 AM

i have same members table like employee dir application.
But I like to send email Depending upon the group they are in for example if they are in marketing i only want to send email to marketing

I can send email to one person at a time but i can't seems to figureout how to do a group email. (CCS2,PHP,Mysql)

Please help
RonB
Posted: 11/11/2003, 2:10 PM

use a while loop to do this:

$db= new clsDBConnection1();
$db->query(select user_email from user_table where user_group='marketing');
while ($db->next_record())
{
$a=Array();
$a["email"]=$db->f("user_email");
$mailtext="some text or some text from database"; $mailto=$a["email"];
$mailsubject="some subject";
mail($mailto,$mailsubject,$mailtext);

}
The above example is very simple and can be expanded as you wish but the mechanisme should be clear.

Ron

   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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