Solved

email to multiple user

Posted on 2003-11-11
5
226 Views
Last Modified: 2006-11-17
well friend, i am new in php programming

i have problem in which i have to send mail to multiple user of same department (like services), which is retrive from database,
now i want to send email with attachement to all those email which are of same department,
Please help

from
pks
0
Comment
Question by:pkspradeep
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Accepted Solution

by:
kohashi earned 63 total points
ID: 9731115
run a look around a mail() function and just have it change the $emailaddress variable each time.  That way you email every user loaded from a database.

hope that helps,
-kohashi
0
 
LVL 19

Assisted Solution

by:Michael701
Michael701 earned 62 total points
ID: 9731765
the manual states to just use commas between email addresses

/* recipients */
$to  = "Mary <mary@example.com>" . ", " ; // note the comma
$to .= "Kelly <kelly@example.com>";

/* subject */
$subject = "Birthday Reminders for August";
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question