HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   postfix administration- using php to handle linux commands (http://www.howtoforge.com/forums/showthread.php?t=40204)

tuananh87vn 18th October 2009 18:47

postfix administration- using php to handle linux commands
 
hi,
firstly i'm not sure if this is the right place to put my question into, if not so can you help me move it to another box? thanks!

alright, i've just finished setting up my postfix email server on Debian with a HOWTO guide and now i'm going to create my own postfix administration application (web-based) using php

with the main purpose of managing domains and users, which are stored in mySql database, some useful web pages are expected to be created using php-- well, pushing and pulling data with php-mysql shouldn't be difficult tasks.

the problem is, however, when i create a new email account, in order to initialise the new maildir, i need to use some linux commands (mail, or telnet port 25) to send them a sort of welcome email, or used when we want to send broadcast message to all email accounts. my question is, how to use php to handle such these linux commands. i know php, i know some linux shell but i don't know how to use the former to control the latter :(

thanks in advance!

falko 19th October 2009 14:10

http://de.php.net/manual/en/book.exec.php

id10t 20th October 2009 15:52

You should also look at the php mail() function

Good function documentation at php.net


All times are GMT +2. The time now is 03:42.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.