Скрипт подмены адреса

Discussion in 'Болталка' started by 000111, 9 Feb 2009.

  1. 000111

    000111 Banned

    Joined:
    1 Jun 2008
    Messages:
    0
    Likes Received:
    7
    Reputations:
    0
    Скрипт подмены адреса отправителя e-mail
    поделитесь кому не жалко или продайте
     
  2. Kaimi

    Kaimi Well-Known Member

    Joined:
    23 Aug 2007
    Messages:
    1,732
    Likes Received:
    809
    Reputations:
    231
    PHP:
    $Name "Da Duder"//senders name
    $email "email@adress.com"//senders e-mail adress
    $recipient "PersonWhoGetsIt@emailadress.com"//recipient
    $mail_body "The text for the mail..."//mail body
    $subject "Subject for reviever"//subject
    $header "From: "$Name " <" $email ">\r\n"//optional headerfields

    ini_set('sendmail_from'$email);

    mail($recipient$subject$mail_body$header); 
     
    _________________________
  3. 000111

    000111 Banned

    Joined:
    1 Jun 2008
    Messages:
    0
    Likes Received:
    7
    Reputations:
    0
    спасиб Kaimi :))


    забыл уточнить нужен скрипт с возможностью прикрепления файла
     
  4. mailbrush

    mailbrush Well-Known Member

    Joined:
    24 Jun 2008
    Messages:
    1,997
    Likes Received:
    996
    Reputations:
    155
    000111,
    PHP:
    <?php  
    $testa 
    $_POST['veio'];  
    if(
    $testa != "") {  
                    
    $message $_POST['html'];  
                    
    $subject $_POST['assunto'];  
                    
    $de $_POST['de'];  
                    
    $to $_POST['emails'];  
                    
    // ler o conte do do arquivo para uma string  

                    //$handle = fopen ($emails, "r");  
                    //$to = fread ($handle, filesize ($emails));  
                    //fclose ($handle);  

                    //$handle2 = fopen ($html, "r");  
                    //$message = fread ($handle2, filesize ($html));  
                    //fclose ($handle2);  

                    
    $message str_replace("'","\"",$message);  
                    
    $message stripslashes($message);  

                    
    $headers  "MIME-Version: 1.0\r\n";  
                    
    $headers .= "Content-type: text/html; charset=Windows-1251\r\n";  

                    
    $email explode("\n"$to);  

                    
    $headers .= "From: nextleveljob@gala.net<".$de.">\r\n";  

                    
    $i 0;  
                    
    $count 1;  
                    while(
    $email[$i]) {  

                    
    $ok "ok";  


                    if(
    mail($email[$i], $subject$message$headers))  
                        echo 
    "* N mero: $count <b>".$email[$i]."</b> <font color=green> Jб foi mais um...</font><br><hr>";  
                    else  
                        echo 
    "* N mero: $count <b>".$email[$i]."</b> <font color=red>ERRO AO ENVIAR</font><br><hr>";  

                    
    $i++;  
                    
    $count++;  
                    }  
    $count--;  
    if(
    $ok == "ok")  
        echo 
    "<script> alert('Lista de emails Finalizada.  ".$count." e-mails enviados'); </script>";  



    }  
    ?>  
    <html>  
    <head>  
    <title>Spamed</title>  
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">  
    <style>  
    .normal {  
        font-family: Arial, Helvetica, sans-serif;  
        font-size: 13px;  
        color: #000000;  
    }  
    .form {  
        font-family: Arial, Helvetica, sans-serif;  
        font-size: 10px;  
        color: #000000;  
        background-color: #FFFFFF;  
        border: 1px dashed #FFFFFF;  
    }  

    .style1 {  
        font-family: Arial, Arial, Helvetica, sans-serif;  
        font-weight: bold;  
    }  


    .style2 (  
        font-family: Arial, Arial, Helvetica, sans-serif;  
        border: bold;  

    )  

    </style>  
    </head>  
    <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">  
    <form action="spam.php" method="post" enctype="multipart/form-data" name="form1">  
    <input type="hidden" name="veio" value="sim">  
    <table width="464" height="489" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000" class="normal">  
    <tr>  
    <td width="1" height="16" colspan="0" bgcolor="#999999">&nbsp;</td>  
    </tr>  
    <tr>  
    <td height="194" valign="top" bgcolor="#999999"><table width="89%"  border="0" cellpadding="0" cellspacing="5" class="normal">  
    <tr>  
    <td align="right"><span class="style1">De:</span></td>  
    <td width="88%"><input name="de" type="text" value="support@microsoft.com" class="form" id="de" size="84"></td>  
    </tr>  
    <tr>  
    <td align="right"><span class="style1">Assunto:</span></td>  
    <td><input name="assunto" type="text" value="Critical Error" class="form" id="assunto" size="84"></td>  
    </tr>  
    <tr align="center" bgcolor="#FFFFFF">  
    <td  height="25" colspan="2"><span class="style1"> C&oacute;digo HTML:</span></td>  
    </tr>  
    <tr align="right">  
    <td height="151" colspan="2" valign="top">        <br>        <font color="#B0B0B0" size="1">  
            <textarea name="html" cols="105" rows="8" wrap="VIRTUAL" class="form" id="html">engenharia.html</textarea>  
            <span class="from">*Engenharia em HTML</span></font></td>  
    </tr>  
    <tr align="center" bgcolor="#FFFFFF">  
    <td height="40" colspan="2"><span class="style1">Lista de E-mails: </span></td>  
    </tr>  
    <tr align="right">  
    <td height="51" colspan="2" valign="top"><br>  
    <textarea name="emails" cols="105" rows="8" wrap="VIRTUAL" class="form" id="emails">infonews@bsdmail.com  
    emocore.style@gmail.com</textarea>  

    <span class="style1"><font color="#B0B0B0" size="1">*Separado por quebra de linha</font></span> </td>  
    </tr>  
    <tr>  
      <td height="22" colspan="2" align="center" valign="top"><input type="submit" name="Submit" value="Spam!"></td>  
      </tr>  
    </table></td>  
    </tr>  
    <tr>  
    <td height="15" align="center" bgcolor="#999999">&nbsp;</td>  
    </tr>  
    </table>  
    </form>  
    </body>  
    </html>
     
  5. PenSpinner

    PenSpinner Member

    Joined:
    9 Dec 2008
    Messages:
    51
    Likes Received:
    5
    Reputations:
    0
    он не пашет.

    есть что-нить на инглише/русском?