Bulk emailer script - email script - php email script

Inforequeter3

Registered Member
Joined
Apr 29, 2009
Messages
86
Reaction score
40
I was wondering if anyone here has a good bulk email sending php script. If so, please share.

Please give details:

1- How to install
2- where to install
3- what the exact features are

I will code any bots in return for whomever may help out on this.

Thanks!
 
Copy this into a new Notepad document:
PHP:
<html>
<head>
<title>InboX Mass Mailer</title>
</head>
<body>
<?php
if(!isset($_POST['submit'])) {
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method='post'>
<table>

<tr>
<td>Desired Name:</td>
<td><input type='text' name='desiredname' /></td>
</tr>

<tr>
<td>Desired Email:</td>
<td><input type='text' name='desiredemail' /></td>
</tr>

<tr>
<td>Reply-to:</td>
<td><input type='text' name='replyto' /></td>
</tr>

<tr>
<td>Subject:</td>
<td><input type='text' name='subject' /></td>
</tr>

<tr>
<td>Recipients: (One Email per line)</td>
<td><textarea rows='5' cols='30' name='recipients'></textarea></td>
</tr>

<tr>
<td>Message: (Supports HTML)</td>
<td><textarea rows='10' cols='30' name='message'></textarea></td>
</tr>

<tr>
<td></td>
<td><input type='submit' name='submit' value='Send'></td>
</tr>

</table>
<?php
}
else {

$desiredname 	= (isset($_POST['desiredname']) ? $_POST['desiredname'] : FALSE);
$desiredemail	= (isset($_POST['desiredemail']) ? $_POST['desiredemail'] : FALSE);
$replyto		= (isset($_POST['replyto']) ? $_POST['replyto'] : FALSE);
$subject 		= (isset($_POST['subject']) ? $_POST['subject'] : FALSE);
$recipients 	= (isset($_POST['recipients']) ? $_POST['recipients'] : FALSE);
$message		= (isset($_POST['message']) ? $_POST['message'] : FALSE);

if($desiredname == FALSE || $desiredemail == FALSE || $replyto == FALSE || $subject == FALSE || $recipients == FALSE || $message == FALSE) {
die('Something is wrong with the information you submitted.<br />Please check again.'); }

$allemails 		= preg_split("/\r\n|\n/", $recipients);
$allemailscount = count($allemails);

for($i = 0; $i <= $allemailscount; $i++) {
$to = $allemails[$i];
$message = "<html><body>" . $message . "</body></html>";

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

$headers .= 'To: ' . $allemails[$i] . "\r\n";
$headers .= 'From: ' . $desiredname . ' <' . $desiredemail . '>' ."\r\n";
$headers .= 'Reply-to: ' . $replyto . "\r\n";

mail($to, $subject, $message, $headers);
}
}
?>

File > Save as... > Select type as "All files" and name the file whatever.php

Upload whatever.php to your website file manager (public_html or www folder) then visit your URL /whatever.php so example.com/whatever.php.

:)
 
Copy this into a new Notepad document:
PHP:
<html>
<head>
<title>InboX Mass Mailer</title>
</head>
<body>
<?php
if(!isset($_POST['submit'])) {
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method='post'>
<table>
 
<tr>
<td>Desired Name:</td>
<td><input type='text' name='desiredname' /></td>
</tr>
 
<tr>
<td>Desired Email:</td>
<td><input type='text' name='desiredemail' /></td>
</tr>
 
<tr>
<td>Reply-to:</td>
<td><input type='text' name='replyto' /></td>
</tr>
 
<tr>
<td>Subject:</td>
<td><input type='text' name='subject' /></td>
</tr>
 
<tr>
<td>Recipients: (One Email per line)</td>
<td><textarea rows='5' cols='30' name='recipients'></textarea></td>
</tr>
 
<tr>
<td>Message: (Supports HTML)</td>
<td><textarea rows='10' cols='30' name='message'></textarea></td>
</tr>
 
<tr>
<td></td>
<td><input type='submit' name='submit' value='Send'></td>
</tr>
 
</table>
<?php
}
else {
 
$desiredname     = (isset($_POST['desiredname']) ? $_POST['desiredname'] : FALSE);
$desiredemail    = (isset($_POST['desiredemail']) ? $_POST['desiredemail'] : FALSE);
$replyto        = (isset($_POST['replyto']) ? $_POST['replyto'] : FALSE);
$subject         = (isset($_POST['subject']) ? $_POST['subject'] : FALSE);
$recipients     = (isset($_POST['recipients']) ? $_POST['recipients'] : FALSE);
$message        = (isset($_POST['message']) ? $_POST['message'] : FALSE);
 
if($desiredname == FALSE || $desiredemail == FALSE || $replyto == FALSE || $subject == FALSE || $recipients == FALSE || $message == FALSE) {
die('Something is wrong with the information you submitted.<br />Please check again.'); }
 
$allemails         = preg_split("/\r\n|\n/", $recipients);
$allemailscount = count($allemails);
 
for($i = 0; $i <= $allemailscount; $i++) {
$to = $allemails[$i];
$message = "<html><body>" . $message . "</body></html>";
 
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
 
$headers .= 'To: ' . $allemails[$i] . "\r\n";
$headers .= 'From: ' . $desiredname . ' <' . $desiredemail . '>' ."\r\n";
$headers .= 'Reply-to: ' . $replyto . "\r\n";
 
mail($to, $subject, $message, $headers);
}
}
?>

File > Save as... > Select type as "All files" and name the file whatever.php

Upload whatever.php to your website file manager (public_html or www folder) then visit your URL /whatever.php so example.com/whatever.php.

:)





Thanks for you help, but I ran some tests on this script and noticed that when I send the email to the same email address, it only reaches the inbox 3 times even though I sent it to the same email address 25 times.

I copy n pasted the same email address 25 times into the recipients email box and then hit the send button only to receive 3 in my inbox during testing.

Couple more questions:

1- How many emails should this script be able to reach or how many recipients should I put in the recipients textarea? I noticed only 3 go through with one send.

2- Where should I upload this script?

3- After you help me on the 2 above questions, where should I send the donation to? I want to pay you for your help.

Thanks!
 
Last edited:
can some1 share the anonymous mailing script through which I can send email to many people atonce ??
 
Back
Top