Jump to content

adding a auto function to my script


spleblem

Recommended Posts

yes well im back and need help with my new mailbomb

 

i would like to make it so i changes thow the emails from automatical or maybe send from a list.

heres the script can i get some help.

 

<html>
<head>
<title>PHP Anonymous Emailer/Mail Bomber</title>
<body bgcolor="black" text="white">
<form action="" method="post">
<br><font size="5" face="verdana">Sender Details</font><br><br>
<font size="2" face="verdana"><b>Name:</b></font><br>
<input name="from_name" type="text" value="" size="50">
<br><br>
<font size="2" face="verdana"><b>Email Adress:</b></font><br>
<input name="from_mail" type="text" value="" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Reply Adress:</b></font><br>
<input name="email_return" type="text" value="" size="50">
<br>
<br>
<br>
<br>
</div>
<font size="5" face="verdana">Recipient Details</font><br><br>
<font size="2" face="verdana"><b>Recipient Email:</b></font<br>
<input name="target" type="text" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Subject:</b></font><br>
<input name="subject" type="text" value="" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Message:</b></font><br>
<textarea name="message" cols="38" rows="5"></textarea>
<br><br><font size="2" face="verdana"><b>Number Of Messages To Send</b></font><p>
<input name="messages" type="text" id="messages" value="" size="15">
<br>
<br>
<input type=submit>
</p>
</form>
<?php

$header="From:$from_name<$from_mail>\n";
$header .= "Reply-To:$email_return\n";
$message2 = stripcslashes($message);
for($x=1;$x<$messages+1;$x++){
mail($target,$subject,$message2,$header);
}
?>

 

thanks in advance

Link to comment
Share on other sites

holy cow

i should slow down my typing speed and start to make some sence.

 

basicly i want the script to automaticaly change the sent email address.

with every email.

 

so say i wont to send 10emails to someone

they would get ten emails all from a different email address

 

these email could just come from a list of emails.

 

could i get some help with this

 

and sorry about my first post not making sence.

 

thanks

 

Link to comment
Share on other sites

to do that put the sender to the array and loop it

 

if u will use the iput boxes then use array as the name of those boxes like  "name='name[]'"

then use the for each

foreach($_POST['name'] as $sender)

{

mail($sender...................  etc)

}

 

or if you want an static value $sender= array('sender1','sender2'....etc)

then do the for each like above

 

 

ASTIG!!!

Link to comment
Share on other sites

$sender=array('emailadress1','emailadress1' , so on so fort )// list the email on  the array for looping

foreach($sender as $address)//loop how many time to be sent with the addres on the array

{

mail($address,$subject,$message2,$header);

// send mail base on the number of list and list also of the array

}

 

ASTIG!!!

Link to comment
Share on other sites

owh sorry i forgot to say this is not my script

i found it out there on the wide world of the web.

 

thanks for your help i will go give it a try.

 

well i must of done something wrong as it doesn't work

 

<html>
<head>
<title>PHP Anonymous Emailer/Mail Bomber</title>
<body bgcolor="black" text="white">
<form action="" method="post">
<br><font size="5" face="verdana">Sender Details</font><br><br>
<font size="2" face="verdana"><b>Name:</b></font><br>
<input name="from_name" type="text" value="" size="50">
<br><br>
<font size="2" face="verdana"><b>Email Adress:</b></font><br>
<input name="from_mail" type="text" value="" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Reply Adress:</b></font><br>
<input name="email_return" type="text" value="" size="50">
<br>
<br>
<br>
<br>
</div>
<font size="5" face="verdana">Recipient Details</font><br><br>
<font size="2" face="verdana"><b>Recipient Email:</b></font<br>
<input name="target" type="text" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Subject:</b></font><br>
<input name="subject" type="text" value="" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Message:</b></font><br>
<textarea name="message" cols="38" rows="5"></textarea>
<br><br><font size="2" face="verdana"><b>Number Of Messages To Send</b></font><p>
<input name="messages" type="text" id="messages" value="" size="15">
<br>
<br>
<input type=submit>
</p>
</form>
<?php

$header="From:$from_name<$from_mail>\n";
$header .= "Reply-To:$email_return\n";
$message2 = stripcslashes($message);
$sender=array('test1@domain.com','test2@domain.com','test3@domain.com')// list the email on  the array for looping
foreach($sender as $address)//loop how many time to be sent with the addres on the array
{
mail($address,$subject,$message2,$header);
// send mail base on the number of list and list also of the array
}
?>

Link to comment
Share on other sites

owh how silly of me forgeting the ;

 

out of the small bit of php that one of the things i do know.

 

ill give it another try.

 

yes well it is still not working

i see the script and all it just ins't sending the emails

maybe i need to remove the old email address input boxes

 

heres my fixed up script but it's still not working.

 

<html>
<head>
<title>PHP Anonymous Emailer/Mail Bomber</title>
<body bgcolor="black" text="white">
<form action="" method="post">
</div>
<font size="5" face="verdana">Recipient Details</font><br><br>
<font size="2" face="verdana"><b>Recipient Email:</b></font<br>
<input name="target" type="text" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Subject:</b></font><br>
<input name="subject" type="text" value="" size="50">
<br>
<br>
<font size="2" face="verdana"><b>Message:</b></font><br>
<textarea name="message" cols="38" rows="5"></textarea>
<br><br><font size="2" face="verdana"><b>Number Of Messages To Send</b></font><p>
<input name="messages" type="text" id="messages" value="" size="15">
<br>
<br>
<input type=submit>
</p>
</form>
<?php

$header="From:$from_name<$from_mail>\n";
$header .= "Reply-To:$email_return\n";
$message2 = stripcslashes($message);
$sender=array('test1@domain.com','test2@domain.com','test3@domain.com');// list the email on  the array for looping
foreach($sender as $address)//loop how many time to be sent with the addres on the array
{
mail($address,$subject,$message2,$header);
// send mail base on the number of list and list also of the array
}
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.