Jump to content
Gonzalez

[PHP] Mailer

Recommended Posts

Posted

Salvati-l ca ceva.php, faceti upload pe un server si bucurati-va de spam ;)


<style type="text/css">
<!--
body,td,th {
color: #999999;
font-family: Courier New, Courier, monospace;
}
body {
background-color: #000000;
}
INPUT {
background-color: black;
border: grey 1px solid;
color: white;
font-family: arial, verdana, ms sans serif;
font-size: 10pt
}
TEXTAREA {
background-color: black;
border: grey 1px solid;
color: white;
font-family: arial, verdana, ms sans serif;
font-size: 10pt;
font-weight: normal
}
-->
</style>
<?php
if (isset($_REQUEST['message']))
{
$message = $_REQUEST['message'] ;
$email = $_REQUEST['email'] ;
$times = $_REQUEST['times'] ;
$subject = $_REQUEST['subject'] ;
$to = $_REQUEST['to'] ;
for ($i=1; $i<=$times; $i++)
{
mail( "$to", "$subject", $message, "From:" . rand() . "@$email" ) ;
}
echo "sent... o.O";
}
else
{
echo "<form method='post' action='index.php'>
<p align='left'>
Times to send:<br />
<input name='times' type='text' value='1' size='4' maxlength='5' />
<br />
<Input name='email' type='text' value='email suffix' />
<br />
<input name='to' type='text' value='To' />
<br />
<input name='subject' type='text' value='Subject' />
<br />
<br />
Message:<br />
<textarea name='message' rows='15' cols='40'></textarea>
<br />
<br />
<input type='submit' name='send' value='send' />
<input name='reset' type='reset' value='reset' />
</p>
</form>";
}
?>

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.   Paste as plain text instead

  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...