Location: PHPKode > scripts > Email Robot > emailrobot/test/script.php
#!/usr/bin/php
<?php

// in 'aliases' file must by line (for example):
// robot:  "| /path_to_script/script.php"
// if e-mail address for robot: hide@address.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();

?>
Return current item: Email Robot