Jump to content

Help again


CalumT

Recommended Posts

Hey again,
I'm making a fake emailer for my site, It obviously will have a note at the bottem "This is FAKE email, it was sent using....".

So don't worry.

I cannot get the script to work, though, the PHP for it is this:

[code]      <?
    $a=addslashes(strip_tags($_GET['a']));
                 if(isset($_POST['submit']) && $a == "send"){
    $target=addslashes(strip_tags($_POST['target']));
    $max= $_POST['237828678966342834424'];
    $subject =addslashes(strip_tags($_POST['subject']));
    $message =addslashes(strip_tags($_POST['message']));
    $totalsent = 0;
    $fake=addslashes(strip_tags($_POST['fake']));
    $headers = 'From: ' . $fake . "\r\n" .
    'Reply-To: ' . $fake;
    while($totalsent < $max){
        mail($target, $subject, $message, $headers);
        $totalsent += 1;
        echo("Email sent!");
    }
}

?>[/code]

You can view it in context here: [a href=\"http://calum-land.com/emailer.php\" target=\"_blank\"]http://calum-land.com/emailer.php[/a], note that the amount of emails to send is [u]not[/u] activated, I just haven't added the Javascript to tell the user this yet.

Can anyone help?

Thanks
~Calum
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.