PHP Classes
elePHPant
Icontem

File: getEmail.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frank Rust  >  Parse Mail  >  getEmail.php  >  Download  
File: getEmail.php
Role: Example script
Content type: text/plain
Description: Part two of example
Class: Parse Mail
Parse the headers and bodies of e-mail messages
Author: By
Last change:
Date: 10 years ago
Size: 538 bytes
 

Contents

Class file image Download
<?php
   
// get an email from a post request and parse it using parseMail class
    // Version 0.1, 2005/03/16
    // Copyright (c) Frank Rust, TU Braunschweig (f.rust@tu-bs.de)
    //

   
require("parseMail.php");
 
   
// could be a bit more safety here:
    // get the contents of the uploaded email file
   
$mailtext=file_get_contents($_FILES['postfile']['tmp_name']);

   
// parse that file
   
$email=new parseMail($mailtext);

   
// show the results (or do anything useful...)
   
print_r($email);


?>