|
|
Anonymous Mailer Script In Php | ||
Discussion by gladiator_us with 9 Replies.
Last Update: November 10, 2004, 7:18 pm | |||
Html file:
CODE
<html><head>
<!-- put your head contents here --!>
</head>
<body>
<form name="form1" action="sendmail.php" method="post">
From mail:<br>
<input name="frommail" type="text" size="30"><br>
From name:<br>
<input name="fromname" type="text" size="30"><br>
To mail:<br>
<input name="tomail" typ="text" size="30"><br>
Subject:<br>
<input name="subjectmail" type="text" size="30"><br>
Message:<br>
<textarea name="msgmail"></textarea><br>
<input type="submit" name="submit" value="send mail">
</form>
</body>
</html>
And the second script of this Anonymous Mailer is php and it begans from now
Php file 'sendmail.php' :
CODE
<?PHP$to = $_POST["tomail"];
$fromm = $_PORT["frommail"];
$fromn = $_POST["fromname"];
$subject = $_POST["subjectmail"];
$msg = $_POST["msgmail"];
if ($to == ""){
print "You have to state who the mail is from";
}
if ($from == ""){
print "You have to state from who the mail is from";
}
if ($subject == ""){
print "You have to state a subject for the mail";
}
if ($msg == ""){
print "You have to state a message for the mail";
}
else{
@mail($to, $subject, $msg, "From: ".$fromn." <".$fromm.">\r\n");
print "your mail has been stealthed to $to";
}
?>
copy above this and made two pages named form of the first script "html" and name for second script is "sendmail.php" for the second secont script. Upload both files to your server and ENJOY!
Regards,
Haseeb
Tue Nov 2, 2004 Reply New Discussion
Tue Nov 2, 2004 Reply New Discussion
QUOTE (lhunath)
And hope that the PHP function "mail()" hasn't been disabled for security reasonsand if the PHP mail mail() function HAS been dissabled... then you get the chance to show off and get all Zero cool Crash OverRide Acid Burn on their asses
everyones faveorite networking tool, telnet.
telnet will connect to any tcp port on any plain text service (like smpt
telnet sends all your keystrokes straight to the server, and echo's all the servers responces to the console.
so.. here is how to send anonymous email with telnet.
CODE
you sendopen smtp_server 25
expect to recieve :
Trying ???.???.???.???...
Connected to ????????.
Escape character is '^]'.
220 ???????? ESMTP Sendmail ?version-number?; ?date+time+gmtoffset?
you send
HELO your_ip_address
expect to recieve
250 ??????? Hello local.domain.name [an_ip], pleased to meet you
you send
MAIL FROM: From@email.address
expect to recieve
250 2.1.0 ??????????... Sender ok
you send
RCPT TO: To@email.address
expect to recieve
250 2.1.0 ????????????... Recipient ok
you send
DATA
Subject:-The Subject-
The email body
as many lines as you like
the end of the email body is given by a single '.' on a lline all by itself
also, note that there has to be a blank line after the subject line.
.
expect to recieve
250 2.0.0 ???????? Message accepted for delivery
you send
QUIT
ofcourse you will have to write this into a gci script.
Tue Nov 2, 2004 Reply New Discussion
Tue Nov 2, 2004 Reply New Discussion
QUOTE (lhunath)
mmmmm telnet..Lol... so mr Admin... what was that rule about posts having to have more than 25 words, and 3 lines
but yeah... telnet rocks !
did you ever see that telne star wars film ???
i cant remember the URL, but its a telnet server, when you connect, it plays the ENTIRE star wars film in ASCII ART !!!!!
Tue Nov 2, 2004 Reply New Discussion
QUOTE (qwijibow)
Lol... so mr Admin... what was that rule about posts having to have more than 25 words, and 3 linesQUOTE (qwijibow)
did you ever see that telne star wars film ???i cant remember the URL, but its a telnet server, when you connect, it plays the ENTIRE star wars film in ASCII ART !!!!!
Tue Nov 2, 2004 Reply New Discussion
QUOTE (lhunath)
Like the mplayer Ascii Art module? Sounds greatno its hand written ascii art. but still worth a look.
but the aalib is great...
there's nothing quite like watching a DVD or playing Quake in ascii art.
i would love to see KDE running on a super high resolution framebuffer ascii art
Wed Nov 3, 2004 Reply New Discussion
QUOTE
It is better not to add email address on your web page, some robot can just grab it and start spamming your email with loads of rubbish.Try the following (modified):-
Html file:
CODE
<html><head>
<!-- put your head contents here --!>
</head>
<body>
<form name="form1" action="sendmail.php" method="post">
Sender email:<br>
<input name="frommail" type="text" size="30"><br>
Sender name:<br>
<input name="fromname" type="text" size="30"><br>
Subject:<br>
<input name="subjectmail" type="text" size="30"><br>
Message:<br>
<textarea name="msgmail"></textarea><br>
<input type="submit" name="submit" value="send mail">
</form>
</body>
</html>
And the second script of this Anonymous Mailer is php and it begans from now
Php file 'sendmail.php' :
CODE
<?PHP$to = "yourname@domain.com";
$fromm = $_PORT["frommail"];
$fromn = $_POST["fromname"];
$subject = $_POST["subjectmail"];
$msg = $_POST["msgmail"];
if ($from == ""){
print "Your Email is required to send this form. Please click "Back" on your browser to include your email address.";
}
if ($subject == ""){
print "Subject of your message is required. Please click "Back" on your browser to fill in the subject.";
}
if ($msg == ""){
print "You have not type in your message. Please click "Back" on your browser to type in your message in the Message Box.";
}
else{
@mail($to, $subject, $msg, "From: ".$fromn." <".$fromm.">\r\n");
print "Your message had been sent.";
}
?>
Wed Nov 3, 2004 Reply New Discussion
Has ASTAHOST disabled mail() for security reasons ??
The telnet stuff was fantastic. Only if anyone could post the URL to view the Star Wars movie..............
Bye,
Bigyan
Wed Nov 10, 2004 Reply New Discussion
I have Ipv6 and it's amazing ;D
Wed Nov 10, 2004 Reply New Discussion
I Want To Learn Php (9)
|
(4) How To Set Up Form Mail
|
Index




