Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP WOAH

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?

Name: Anonymous 2009-07-03 14:51

You're using php

Name: Anonymous 2009-07-03 14:53

What does your MTA logfile say?

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);

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.

Name: Anonymous 2009-07-03 15:26

>>5
use CGI::Carp qw(fatalsToBrowser);

Name: Anonymous 2009-07-03 15:30

HAVE U GOT A FUCKING SMTP SERVER U FUQQEN WEB DEVELOPER?

Name: Anonymous 2009-07-03 15:37

>>7
What's that? And I'm not a web developer, I just picked up PHP.

Name: Anonymous 2009-07-03 15:45

>>8
to /g/ with you!

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.

Name: Anonymous 2009-07-03 15:49

does you're linux handle it? ; - )

Name: Anonymous 2009-07-03 15:57

what the fuck is sendmail

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

Name: Anonymous 2009-07-03 19:38

WOOOOOOOOOAAAAAAAAHHHHHHHH PHP

Name: Anonymous 2009-07-04 2:54

>>14
[b][u][oSO INTENSE SO FUCKING INTENSE[/o][/b]

Name: Anonymous 2009-07-04 6:02

>>13
sendmail
DOHOHOHO
3/10

Name: Anonymous 2009-07-04 8:20

99% chance your messages are being shitcanned because of bad SPF records.

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

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

Name: Anonymous 2009-07-04 13:17

Enjoy you're header injection.

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

Name: Anonymous 2010-11-15 4:22

Name: Anonymous 2010-11-28 2:57

Name: Anonymous 2011-02-04 19:55

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List