lubberscorrado / php-mime-mail-parser

Automatically exported from code.google.com/p/php-mime-mail-parser
0 stars 0 forks source link

Correct syntax for e-mails piped to script? #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
#!/usr/local/bin/php -q
<?php
// BEGIN MailParser******************************************
require_once('/home/birdymai/resources/library/MimeMailParser.class.php');

$path = 'php://stdin';
$Parser = new MimeMailParser();
$Parser->setStream(fopen($path, 'r'));

$to = $Parser->getHeader('to');
$sender = $Parser->getHeader('from');
$subject = $Parser->getHeader('subject');
$textbody = $Parser->getMessageBody('text');

Original issue reported on code.google.com by gswal...@gmail.com on 4 Mar 2013 at 4:36

GoogleCodeExporter commented 8 years ago
Dsiregard I found my issue!

Original comment by gswal...@gmail.com on 4 Mar 2013 at 7:08