PHP Classes
Icontem

File: getEmail.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frank Rust  >  Parse Mail  >  getEmail.php  
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
 

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);


?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products