Skip to main content

TNEF Attachment Extractor

TNEF Attachment Extractor

Use case

Some email clients or third party applications that receive emails cannot interpret the TNEF-encoded file that comes from users that are using Microsoft Outlook as their main email client to send their emails with having the TNEF feature activated. With a custom implementation /business process flow that is using our API it would be still possible to parse out and extract the attachted documents in order to store these files on your client or in your third party application.

More information on how Microsoft Outlook can be configured in this regard here:
https://support.microsoft.com/en-us/topic/how-email-message-formats-affect-internet-email-messages-in-outlook-3b2c0536-c1c0-1d68-19f0-8cae13c26722

What is the TNEF file format?

Transport Neutral Encapsulation Format or TNEF is a proprietary email attachment format used by Microsoft Outlook and Microsoft Exchange Server. An attached file with TNEF encoding is most often named winmail.dat or win.dat, and has a MIME type of Application/MS-TNEF. The official (IANA) media type, however, is application/vnd.ms-tnef.

Sample request schema:

This API endpoint expects in the request body a JSON with a “content” property

{

content: “BASE-64 encoded string of a TNEF file”

}

For quick testing you can convert your winmail.dat (TNEF encoded file) into a base-64 encoded string with online converter:

https://base64.guru/converter/encode/file

Otherwise you need to implement this conversion logic in your client prior to calling this API endpoint.

As a result this endpoint will return base-64 encoded files and its original file names.

Sample result schema:

{

fileName:“mypicture.jpg"
content:”/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/+4AJkFkb2JlAGTAAAAAAQMAFQQDBgoNAAADiAAABUwAAAfnAAALd//bAI…",

fileName:“readme.txt",
content:”/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/+4AJkFkb2JlAGTAAAAAAQMAFQQDBgoNAAADiAAABUwAAAfnAAALd//bAI…"

}

To quickly check and convert the result base-64 strings back you could also use this online converter tool:
https://base64.guru/converter/decode/file

 

Pricing

Choose Your Plan

Basic

0  / Month
  • Requests: 10/day
  • Hard Limit
  • Rate Limit

Pro

9,99  / Month
  • Requests: 10.000/month
  • + 0,004 €
  • Rate Limit: 20/minute

Ultra

19,99  / Month
  • Requests: 20.000/month
  • + 0,003 €
  • Rate Limit: 30/minute

Mega

39,99  / Month
  • Requests: 50.000/month
  • + 0,002 €
  • Rate Limit: 40/minute

* Ordering and administration is carried out by our service provider Nadles.com

About

We are professional and reliable provider since we offer customers the most powerful solutions. Besides, we always catch the latest technology and adapt to follow world’s new trends to deliver the best cloud solutions to the market.