Re: SV: SV: [PHP] Mail system

2008-01-08 Thread Michelle Konzack
Am 2007-12-30 22:10:50, schrieb mattias:
 Yes but i are newbie in php
 I think i should use php exec but i dont know no more

I use apache with php5 and su-php...

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSN LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)


signature.pgp
Description: Digital signature


Re: SV: SV: [PHP] Mail system

2007-12-30 Thread Stut

mattias wrote:

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


GOOGLE GOOGLE GOOGLE GOOGLE GOOGLE

http://postfixadmin.sourceforge.net/ was the first result I got. Seems 
to fit the bill from where I'm sitting.


-Stut

--
http://stut.net/


-Ursprungligt meddelande-
Från: Stut [mailto:[EMAIL PROTECTED] 
Skickat: den 30 december 2007 22:01

Till: mattias
Kopia: php-general@lists.php.net
Ä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


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



Re: SV: SV: [PHP] Mail system

2007-12-30 Thread tedd

At 9:15 PM + 12/30/07, Stut wrote:

mattias wrote:

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


GOOGLE GOOGLE GOOGLE GOOGLE GOOGLE



Sounds like the Ghost of Thanksgiving Turkey.

I know, my holiday meter is pegged.

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: SV: SV: [PHP] Mail system

2007-12-30 Thread Børge Holen
On Sunday 30 December 2007 22:10:50 mattias wrote:
 Yes but i are newbie in php
 I think i should use php exec but i dont know no more

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


 -Ursprungligt meddelande-
 Från: Stut [mailto:[EMAIL PROTECTED]
 Skickat: den 30 december 2007 22:01
 Till: mattias
 Kopia: php-general@lists.php.net
 Ä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:[EMAIL PROTECTED]
  Skickat: den 30 december 2007 21:46
  Till: mattias
  Kopia: php-general@lists.php.net
  Ä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



-- 
---
Børge Holen
http://www.arivene.net

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



Re: SV: SV: [PHP] Mail system

2007-12-30 Thread Richard Lynch
?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:[EMAIL PROTECTED]
 Skickat: den 30 december 2007 22:01
 Till: mattias
 Kopia: php-general@lists.php.net
 Ä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:[EMAIL PROTECTED]
 Skickat: den 30 december 2007 21:46
 Till: mattias
 Kopia: php-general@lists.php.net
 Ä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?

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



Re: SV: SV: [PHP] Mail system

2007-12-30 Thread Richard Lynch
On Sun, December 30, 2007 3:36 pm, Børge Holen wrote:
 On Sunday 30 December 2007 22:10:50 mattias wrote:
 Yes but i are newbie in php
 I think i should use php exec but i dont know no more

 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

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?

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