qualityunit/tnef-decoder

TNEF Decoder library extracted from squirell mail plugin to decode winmail.dat file in email attachment

1.2.9 2024-01-09 13:30 UTC

This package is auto-updated.

Last update: 2024-05-09 14:10:44 UTC


README

Simple PHP library to decode TNEF files (winmail.dat).

It is based on SquirellMail plugin

#Requirements:

  • PHP >= 7.0
  • PHP-mbstring extension

#Usage Include via composer:

composer require qualityunit/tnef-decoder

Create object to parse attachment file

$attachment = new TNEFAttachment();

Parse string with attachment file and receive array of extracted file objects.

$attachment->decodeTnef($buffer);
$files = $attachment->getFiles();