spleblem Posted June 21, 2007 Share Posted June 21, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/ Share on other sites More sharing options...
trq Posted June 21, 2007 Share Posted June 21, 2007 Read this.... i would like to make it so i changes thow the emails from automatical or maybe send from a list. Does that make sense to you? Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279647 Share on other sites More sharing options...
spleblem Posted June 21, 2007 Author Share Posted June 21, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279652 Share on other sites More sharing options...
teng84 Posted June 21, 2007 Share Posted June 21, 2007 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!!! Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279653 Share on other sites More sharing options...
spleblem Posted June 21, 2007 Author Share Posted June 21, 2007 yes well i don't know much php if any at all. would you be able to tell me in a bit more detail if that's not to much trouble. i do know basics of many scripts so im not a complete noob Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279655 Share on other sites More sharing options...
teng84 Posted June 21, 2007 Share Posted June 21, 2007 I dont want to read long script that makes me seek first from the example i gave what will u use the static or the input coming from the text box ASTIG!! Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279658 Share on other sites More sharing options...
spleblem Posted June 21, 2007 Author Share Posted June 21, 2007 i think the staic i want the emails to come from a list Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279660 Share on other sites More sharing options...
teng84 Posted June 21, 2007 Share Posted June 21, 2007 $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!!! Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279661 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 yes alright im sort of understanding now but the script i first posted is wierd as it html and php not like the other php scripts ive done stuff with. so how would i add that to my script Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279664 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 for($x=1;$x<$messages+1;$x++){ mail($target,$subject,$message2,$header); } replace that with the code i gave you ASTIG!!! and your html what does it do Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279667 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 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 } ?> Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279670 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 $sender=array('test1@domain.com','test2@domain.com','test3@domain.com'); the terminator ;;;;; you forgot and of theres still error give me the error message ASTIG!! Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279677 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 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 } ?> Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279679 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 give me the error message and tell me the expected outcome you want Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279686 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 ummm im not sure how i get the error message the script looks like it works fine but doesn't send anyemails. my outcome in a script which emails one person may times. Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279688 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 where do you run the script?? Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279689 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 on my wesite i upload though ftp editor Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279692 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 $subject where is that variable Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279696 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 im not sure should it be somewhere these use to be a subject variable Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279698 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 that varialble is the location of the email to check just code your email address there replace the $subject with ur email ASTIG!!! Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279701 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 why do i do that i wont the emails test1,test2 and all that this was all making sence, now im confused. Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279703 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 mail($address,$subject,$message2,$header); reverse the two value on the mail func mail('type the email add here',$address,$message2,$header); Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279705 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 sorry im not understanding this anymore. can you explain with a bit more detail please. Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279706 Share on other sites More sharing options...
teng84 Posted June 22, 2007 Share Posted June 22, 2007 mail(to,subject,message,headers) Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279711 Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 owh i had to change the @address to target ill try it like that now. and can i remove the $header will it still work Quote Link to comment https://forums.phpfreaks.com/topic/56632-adding-a-auto-function-to-my-script/#findComment-279712 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.