Login   Register  
PHP Classes
elePHPant
Icontem

File: EMailRobot/test/script.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ilya Nemihin  >  EMailRobot  >  EMailRobot/test/script.php  >  Download  
File: EMailRobot/test/script.php
Role: Application script
Content type: text/plain
Description: main start-working script
Class: EMailRobot
E-mail robot, takes letters, parse and forms answe
Author: By
Last change: fix sintax error
Date: 2002-08-28 09:17
Size: 422 bytes
 

Contents

Class file image Download
#!/usr/bin/php
<?php

// in 'aliases' file must by line (for example):
// robot:  "| /path_to_script/script.php"
// if e-mail address for robot: robot@you_domain.com
// read:
// man aliases
// man newaliases


include "../include/EMailRobot/EMailRobot.php";

$stdin file"php://stdin" );
$m implode""$stdin );

$e_robot = new EMailRobot();

$e_robot->setEMailData$m );
$e_robot->work();

?>