Login   Register  
PHP Classes
elePHPant
Icontem

File: EMailRobot/test/testEMailRobot.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/testEMailRobot.php  >  Download  
File: EMailRobot/test/testEMailRobot.php
Role: Example script
Content type: text/plain
Description: test local-script
Class: EMailRobot
E-mail robot, takes letters, parse and forms answe
Author: By
Last change:
Date: 11 years ago
Size: 589 bytes
 

Contents

Class file image Download
<?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();


?>