CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Sending Email to Group of People

Print topic Send  topic

Author Message
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
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())
$mailtext="some text or some text from database"; $mailto=$a["email"];
$mailsubject="some subject";

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



These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

MS Access to Web

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

Home   |    Search   |    Members   |    Register   |    Login

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