Solved

email to multiple user

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

688 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