You can send email to mutiple persons at one shot using php. When you submit, this file will be sent an email immediately to the target emails from your database.
First create a DB
Database “mail” and table “email_list” with 3 fields: id(auto_increment), name(varchar, 50), email (varchar, 50) and put some records into this table.
< ?php
// Check, if submitted.
if($Submit){
// Get variables from POST method form.
$subject=$_POST['subject'];
$note=$_POST['note'];
$sender="admin@yourdomain.ext"; // Your Email here.
echo "Email has been sent to:";
// Connect database
mysql_connect("localhost","","");
mysql_select_db("mail");
$rs=mysql_query("select * from email_list order by id asc");
// Do while loop to send email.
while($row=mysql_fetch_assoc($rs)){
$to=$row['email'];
$mail_from="From:$email n";
$mail_from .="Content-Type: text/html; charset=utf-8 n";
mail($to,$subject,$note,$mail_from);
// Show sent emails.
echo "$row[email]<br>";
}
}else{
// Do following codes if not found "Submit" value.(Not submitted)
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<title>Email Form</title>
<body>
<form action="<? echo $PHP_SELF; ?>" method="post" name="form" id="form">
<table>
<tr>
<td align="right">Subject : </td>
<td><input name="email" type="text" id="email" /></td>
</tr>
<tr>
<td align="right" valign="top">Note : </td>
<td><textarea name="comment" cols="60" rows="5" id="comment"></textarea></td>
</tr>
</table>
<input type="submit" name="Submit" value="Send Email" />
</form>
</body>
</html>
< ? } ?>
Incoming search terms:
- how to send email to multiple people in php (26)
- how to send email in php to multiple people (7)
- php send email to multiple people (6)
- sending email to multiple recipients in php examples (5)
- how to send email multiple people in php (5)
- send multiple email php (4)
- how to send multiple emails using php (4)
- how to send email to two people in php (4)
- how to send email on multiple id in php (4)
- how to send an email to multiple people in php (4)
- php send email to multiple (4)
- php code for sending email to multi ids (3)
- send multi select emails using php (3)
- email to multiple people in php (3)
- php sending mail to multiple to ids (3)
- send email to many using ajax and php (3)
- sending email to multiple using own website in php (3)
- fill form send to mail id using php source code (3)
- how to send email to multiple people using php (3)
- how to send mail with multiple database row for single mail in php (3)
- send php form to multiple e-mail from database (3)
- symfony2 select sum (3)
- code in php on how to snd n email to many people (3)
- how to email multiple using php (3)
- how to send mail to multiple people in php (3)
- how to send email in two email id in php (2)
- send multiple email using php (2)
- link mail to multiple id using php (2)
- php send multiple email (2)
- /viewer php?albid= send thread (2)
- send one mail to multiple id in php (2)
- how to send email to more people using for loop in php (2)
- send email to multiple person in php (2)
- send email on multiple id php script (2)
- send email to multiple using php (2)
- how to send mail to 2 person in php (2)
- how to send multiple emails from admin in php (2)
- how to send mail in php to mutiple mail id (2)
- Send Email to Multiple Persons using php (2)
- how to send file to many person in php (2)
You will also be interested in ,
- Image gallery using php and mysql blob storage and displaying the image from mysql blob
- Database Connection And Pagination In PHP Using Symfony Framework
- Check whether url or domain exists using php
- How to display popular posts in wordpress
- Send mail to admin or website owner when ever the logs show 404 or 500 or 401 or 400 error codes
- Reading file using php
- PHP E-mail with attachment
- Locking a text file database using php
- Speed up wordpress using .htaccess part 1
- Post Data To Another Website Using cURL In PHP


I am a complete novice. The source code looks like it is for multiple pages. Which part goes where?