PHP Classes

File: EMailRobot/test/script.php

Recommend this page to a friend!
  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: 22 years ago
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();

?>