<?php
/*
example, see description in ../include/EMailRobot/EMailRobot.php
*/
include_once "../include/EMailRobot/EMailRobot.php";
$emailRobot = new EMailRobot();
// file test:
$data = join('', file('email.txt'));
$emailRobot->emailSender->setMode( 'test' );
// real for email-script:
//$stdin = file( "php://stdin" );
//$data = implode( "", $stdin );
$emailRobot->setEMailData( $data );
$emailRobot->emailSender->setHeaders( "Mime-Version: 1.0\nContent-Type: text/plain; charset=Windows-1251\nContent-Transfer-Encoding: 8bit" );
$emailRobot->work();
?>
|