Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > SV: SV: Mail system
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd November 18:30
mj
External User
 
Posts: 1
Default SV: SV: Mail system



Yes but i are newbie in php
I think i should use php exec but i dont know no more

-----Ursprungligt meddelande-----
Från: Stut [mailto:stuttle@gmail.com]
Skickat: den 30 december 2007 22:01
Till: mattias
Kopia: php-general@lists.php.net
Ämne: Re: SV: [php] Mail system


I'm actually having a pretty good day thanks. Seriously though, Google
for an existing solution, and if there isn't one have a go yourself and
then ask for help if you have problems.

I apologise if you feel that's harsh, but that's the way it is.

-Stut
-- http://stut.net/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
  Reply With Quote


 


2 4th November 09:54
tedd.sperling
External User
 
Posts: 1
Default SV: SV: Mail system



Sounds like the Ghost of Thanksgiving Turkey.

I know, my holiday meter is pegged.

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
  Reply With Quote
3 4th November 09:54
borge
External User
 
Posts: 1
Default SV: SV: Mail system


See there's no problem havin php reading your files, you just got to make sure
that it's allowed to... PHP is not doing that very well job, so there is some
perl cgi stuff thingy and I don't know.
imho, start tearing apart some software and skip googling, to much small stuff
to figure out just by thinking about it.
It's like trying to think out a car in details all by yerself... could be done
in a few months, but if you're like me... I won't even say it


--
---
Børge Holen
http://www.arivene.net
  Reply With Quote
4 4th November 09:55
ceo
External User
 
Posts: 1
Default SV: SV: Mail system


<?php
$arg1 = escapeshellarg($_POST['arg1'];
exec("/full/path/to/courier /full/path/to/any/files $arg1", $output,
$error);
var_dump($output);
if ($error){
die("Use shell 'perror $error' to find out what the OS said. Or
install my nifty perror extension.<br
/>\nhttp://l-i-e.com/perror");
}
?>

You're on your own to figure out the courier and postfix commands you
need to use.

You'll have to ask on courier and postfix mailing lists.

You'll also probably run into permissions issues, as letting the
webserver user (e.g. 'apache') run the postfix binaries is probably
not a Good Idea, really...

You need to think heavily about SECURITY before you do this, and,
frankly, as a newbie, you should probably hire somebody to review your
process/code for you.

I dunno if Shiflett and co. take on such a small task, but somebody
somewhere might... Or maybe the courier/postfix folks can comment on
just how dangerously you are behaving.

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
  Reply With Quote
5 4th November 09:55
ceo
External User
 
Posts: 1
Default SV: SV: Mail system


This one time, I worked a summer job for Macon County Highway in
Illinois, and some punk-[bleep] kid decided to take it upon himself to
completely strip down one of their dump trucks to parts...

He got it pretty much all apart in a day, before anybody realized what
he was doing!

They made him put it back together, but he had to have so much help
from the head mechanic, that said head mechanic was very [bleeped]
off...

I think it only took a few days/weeks of their spare time to get it
back together, but it seemed like he was getting razzed forever...

Which reminds me: I've still got a Lionel train engine to re-assemble
from my teen years... But at least I know I can handle that task,
when I have nothing more important to do...

Obligatory On-Topic Forced Analogy:
Fortunately, with code, we can BACKUP before tearing it all apart, or
use subversion (et al) :-)

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
  Reply With Quote
Reply


Thread Tools
Display Modes




666