Latest topics
IBC chat

ShoutMix chat widget
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

[ask] [php] mass email spamer

View previous topic View next topic Go down

[ask] [php] mass email spamer

Post  hakuya on Tue Jul 19, 2011 5:03 pm

kk mau tanya nich, kemaren iseng bikin mass email spamer.,
berikut tampilannya

nah ps di "to" itu sy maunya upload dari file .txt yg isinya data email semua,.
tapi anehnya pas akhir message sent tapi pas di cek ke email gag ke kirim.,
gmn yah solusinya??

sedikit petikan puisinya

Code:
$myfile = $_FILES['to']['tmp_name'];
    $subject = $_GET['subject'];
    $message = $_GET['message'];
   $fromaddress = $_GET['fromaddres'];
   $addres = array();
   $addres = file_get_contents($myfile);
   $alamat = explode("\n",$addres);
for ($i = 1; $i <= 2000; $i++){   
   foreach ($alamat as $mail){
   $cihuy = '<option value="'.$mail.'">'.$mail.'</option>';
   $fromname = "FBI";
   
    $eol="n";
    $headers = "From: ".$fromname."<".$fromaddress.">".$eol;
    $headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol;
    $headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol;
    $headers .= "Message-ID: <".time()."-".$fromaddress.">".$eol;
    $headers .= "X-Mailer: PHP v".phpversion().$eol;
    $headers .= 'MIME-Version: 1.0'.$eol;
    $headers .= "Content-type: text/html; charset=iso-8859-1".$eol.$eol;

    $sent = mail($cihuy, $subject, $message, $headers);

    if($sent)
    {
        echo "Message to $cihuy has been sent<br>";
    }
    else
    {
        print "Something went wrong";
    }
   }
   }
avatar
hakuya

Posts : 13
Join date : 2010-11-09
Age : 27

View user profile

Back to top Go down

Re: [ask] [php] mass email spamer

Post  vailo on Wed Jul 20, 2011 4:13 pm

hakuya wrote:
. . .
$cihuy = '<option value="'.$mail.'">'.$mail.'</option>';
. . .
$sent = mail($cihuy, $subject, $message, $headers);
. . .

kalo misalnya isi variable $mail = "hakuya@ibc.ko.ide", brarti isi variable $cihuy = "<option value='hakuya@ibc.ko.ide'>hakuya@ibc.ko.ide</option>" donk...
Q:emailnya ke kirim?
A: YA!!

Q: emailnya dikirim ke mana?
A: BUKAN ke "hakuya@ibc.ko.ide", tapi ke "<option value='hakuya@ibc.ko.ide'>hakuya@ibc.ko.ide</option>"
avatar
vailo

Posts : 137
Join date : 2009-10-18

View user profile

Back to top Go down

Re: [ask] [php] mass email spamer

Post  hakuya on Thu Jul 21, 2011 3:16 pm

vailo wrote:
hakuya wrote:
. . .
$cihuy = '<option value="'.$mail.'">'.$mail.'</option>';
. . .
$sent = mail($cihuy, $subject, $message, $headers);
. . .

kalo misalnya isi variable $mail = "hakuya@ibc.ko.ide", brarti isi variable $cihuy = "<option value='hakuya@ibc.ko.ide'>hakuya@ibc.ko.ide</option>" donk...
Q:emailnya ke kirim?
A: YA!!

Q: emailnya dikirim ke mana?
A: BUKAN ke "hakuya@ibc.ko.ide", tapi ke "<option value='hakuya@ibc.ko.ide'>hakuya@ibc.ko.ide</option>"

berarti harus begini yah??
Code:

. . .
$sent = mail($mail, $subject, $message, $headers);
. . .
avatar
hakuya

Posts : 13
Join date : 2010-11-09
Age : 27

View user profile

Back to top Go down

Re: [ask] [php] mass email spamer

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum