Solved

email to multiple user

Posted on 2003-11-11
5
221 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now