예제 #1
0
 private function startFakemail()
 {
     exec('rm -f /var/www/phpday2010/test/mail/*');
     $command = dirname(__FILE__) . '/../fakemail/fakemail --background';
     $command .= ' --path=' . ConfigManager::getMailFolderPath();
     $command .= ' --host=localhost';
     $command .= ' --port=' . ConfigManager::getMailPort();
     shell_exec($command);
 }