PHP WOAH
1
Name:
Anonymous
2009-07-03 14:48
I have this:
<html>
<head>
<title>LOLPHP</title>
</head>
<body>
<form method="post" action="mail.php">
Email: <input name="email" type="text" /><br />
<textarea name="message" rows="15" cols="80">
</textarea><br />
<input type="submit">
</form>
</body>
</html>
And this:
<?php
$email = $_REQUEST['email'];
$text = $_REQUEST['message'];
mail("the_fuck_on@gmail.com",
"E-mail sending test",
$text,
"From: $email");
header("Location: thanx.html");
?>
But I get no mail, what's going on?
2
Name:
Anonymous
2009-07-03 14:51
You're using php
3
Name:
Anonymous
2009-07-03 14:53
What does your MTA logfile say?
4
Name:
Anonymous
2009-07-03 15:08
$ cat > mail.php
#!/usr/bin/perl -T
use strict;
use warnings;
use CGI ':standard';
my ($email, $text) = (param('email'), param('text'));
open (MAIL, "|/usr/sbin/sendmail -t") || die "Aw, bugger. $!";
print MAIL <<EOF
To: the_fuck_on\@gmail.com
From: $email
Subject: E-mail sending test
Content-type: text/plain
$text
EOF
close MAIL;
print redirect(-uri => 'thanx.html', -status => 302);
5
Name:
Anonymous
2009-07-03 15:12
>>3
My what?
If you mean anything in /var/log that makes sense, like mail.log, or mail.err, there's nothing inside.
6
Name:
Anonymous
2009-07-03 15:26
>>5
use CGI::Carp qw(fatalsToBrowser);
7
Name:
Anonymous
2009-07-03 15:30
HAVE U GOT A FUCKING SMTP SERVER U FUQQEN WEB DEVELOPER?
8
Name:
Anonymous
2009-07-03 15:37
>>7
What's that? And I'm not a web developer, I just picked up PHP.
9
Name:
Anonymous
2009-07-03 15:45
10
Name:
Anonymous
2009-07-03 15:47
The Internet says that you have to meddle with SMPT in Windows only, and in Linux, sendmail handles it.
11
Name:
Anonymous
2009-07-03 15:49
does you're linux handle it? ; - )
12
Name:
Anonymous
2009-07-03 15:57
what the fuck is sendmail
13
Name:
Anonymous
2009-07-03 16:14
It works now. Turns out that I didn't have sendmail installed (even though I was able to run it and do everything else and apt-get claimed that I have it, too, but the config files were not there. Fucking Ubanto).
14
Name:
Anonymous
2009-07-03 19:38
WOOOOOOOOOAAAAAAAAHHHHHHHH PHP
15
Name:
Anonymous
2009-07-04 2:54
>>14
[b] [u] [o
SO INTENSE SO FUCKING INTENSE [/o] [/b]
16
Name:
Anonymous
2009-07-04 6:02
>>13
sendmail
DOHOHOHO
3/10
17
Name:
Anonymous
2009-07-04 8:20
99% chance your messages are being shitcanned because of bad SPF records.
18
Name:
Anonymous
2009-07-04 12:10
FUCK I JUST SPENT HALF AN HOUR DEBUGGING AND IT TURNED OUT I FORGOT $ I WANT MY HASKELL BACK
19
Name:
Anonymous
2009-07-04 13:14
WHAT THE FUCK HTML I CANT INDENT MY TEXTAREA TAGS BECAUSE THE SPACES WILL BE INSIDE FUCK I WANT MY FIOC BACK
20
Name:
Anonymous
2009-07-04 13:17
Enjoy you're header injection.
21
Name:
Anonymous
2009-07-04 13:22
JESUS CHRIST I SPEND HALF AN HOUR MASTURBATING AND GOT A DRY ORGASM I WANT A REAL WOMAN
22
Name:
Anonymous
2010-11-15 4:22