<?php//从输入读取到所有的邮件内容$email = ;$fd = fopen(php://stdin, r);while (!feof($fd)) { $email .= fread($fd, 1024);}fclose($fd);//记录所有的内容,测试file_put_contents(/tmp/mail/.time(), $email);//处理邮件$lines = explode(\n, $email);// empty vars$from = ;$date = ;$subject = ;$message = ;$splittingheaders = true;for ($i=0; $i
