Solved

email to multiple user

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

895 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

15 Experts available now in Live!

Get 1:1 Help Now