Re: SV: SV: [PHP] 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.

On Sun, December 30, 2007 3:10 pm, mattias wrote:
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@xxxxxxxxx]
Skickat: den 30 december 2007 22:01
Till: mattias
Kopia: php-general@xxxxxxxxxxxxx
Ämne: Re: SV: [PHP] Mail system


mattias wrote:
First of all
If you have a bad day don't send to the list

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/

-----Ursprungligt meddelande-----
Från: Stut [mailto:stuttle@xxxxxxxxx]
Skickat: den 30 december 2007 21:46
Till: mattias
Kopia: php-general@xxxxxxxxxxxxx
Ämne: Re: [PHP] Mail system


mattias wrote:
If i run coureir and postfix
I want to have a signup script
How should the code be written?

Since you're asking on a PHP list I'm going to assume you want to
use
PHP. The answer you seek is... by you, using some form of text
editor!

We're not here to write code for you. Have a go, then come back if
you
have problems. The manual will help, as will Google. There's a good
chance someone has already done this, so I'd start with Google.

-Stut

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

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




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



Relevant Pages

  • [OT] About news.php.net vs Mailing list
    ... are beside this newsgroup, subscribed to some PHP mailing lists at ... Luckily that mailing lists have their mirror at ... Why php.net does not use news server as primary way to carry php ...
    (comp.lang.php)
  • Re: [PHP] No is_date() function?
    ... i dont know how they expect people to use it. ... >>> I wrote a serialization function to turn arbitrary PHP variables ... Please don't top post on mailing lists. ...
    (php.general)
  • Re: [PHP] Job postings?
    ... This is a general etiquette question. ... I have a job posting for a junior PHP programmer. ... mailing lists to which it would be appropriate to post that? ...
    (php.general)
  • RE: [PHP] Request for...
    ... Since this is a mailing list for web developers, ... are their Java mailing lists? ... how about one in PHP for free? ... 'site map generator PHP' and the first result was ...
    (php.general)
  • Re: SV: SV: [PHP] Mail system
    ... On Sunday 30 December 2007 22:10:50 mattias wrote: ... See there's no problem havin php reading your files, you just got to make sure ... Kopia: php-general@xxxxxxxxxxxxx ... The manual will help, as will Google. ...
    (php.general)