#!/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();
?>
|