Solved

email to multiple user

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

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

Title # Comments Views Activity
Test if unique ID is in log file 5 31
pass foreach data in php into jquery ajax 10 45
Survey branching tutorial 11 37
How do I speed up this PDO query 4 11
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

685 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