note 109695 modified in function.imap-fetchbody by danbrown

From: Date: Fri, 10 Aug 2012 16:02:40 +0000
Subject: note 109695 modified in function.imap-fetchbody by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189985@lists.php.net to get a copy of this message
Winmail.dat (TNEF content) may be processed using the function included in roundcubemail. 

Just include the file program/lib/tnef_decoder.php from roundcubemail, extract the contents of the winmail.dat file (application/tnef) and use the following code:

<?php
require_once('path_to/tnef_decoder.php');

$tnef = new tnef_decoder;
$tnef_arr = $tnef->decompress($winmail_dat);
print_r($tnef_arr);
?>

$tnef_arr will contain an array with the content of winmail.dat --was-- Winmail.dat (TNEF content) may be processed using the function included in roundcubemail. Just include the file program/lib/tnef_decoder.php from roundcubemail, extract the contents of the winmail.dat file (application/tnef) and use the following code: require_once('path_to/tnef_decoder.php'); $tnef = new tnef_decoder; $tnef_arr = $tnef->decompress($winmail_dat); print_r($tnef_arr); $tnef_arr will contain an array with the content of winmail.dat http://php.net/manual/en/function.imap-fetchbody.php

« previous php.notes (#189985) next »