Questions tagged [winmail.dat]

The file of “winmail.dat” allows Outlook users to send Transport Neutral Encapsulation Format (TNEF) information along with the email which retains the look and feel of the document with formatting, fonts, and colors when its received by another Microsoft Outlook user, but is not useful to non-Exchange Server recipients.

The Transport Neutral Encapsulation (TNEF) Format allows Outlook users to send information in an email along with informations which retains the look and feel of the document with formatting, fonts, and colors across an Exchange environment. However it is not useful to non-Exchange Server recipients and if not converted (see here) on that system, it will show as winmail.dat file/attachment.

22 questions
11
votes
1 answer

How to parse winmail.dat with python

I'm pulling emails with attachments off a server and placing them in folders based on certain criteria. This is no problem for emails that were sent with plain text encoding, but as we all know if they were sent with rich text then the attachments…
CCKx
  • 1,303
  • 10
  • 22
7
votes
7 answers

How do I handle Microsoft outlook winmail.dat? Any other surprises?

Ive decided that I really dont like microsoft and their ways. Please could you give me directions on how to handle winmail.dat in emails, is there a jython library or a java library that will allow me to handle this. Ive just completed a email…
Setori
  • 10,326
  • 11
  • 40
  • 46
5
votes
0 answers

Handling winmail.dat using java mail api

I am using JavaMail API to get attachments and some of them are in form of winmail.dat. As stated in get email attatchment for POP 3 received as winmail.dat or How do I handle Microsoft outlook winmail.dat? Any other surprises? I tried both…
benchpresser
  • 2,171
  • 2
  • 23
  • 41
5
votes
6 answers

How can I parse the winmail.dat file?

Simple question. I have a C# application that access an IMAP server using the AE.Net.Mail library to retrieve messages and attached files. Sometimes, when a message is sent from Outlook the attachments are contained in a file named winmail.dat. That…
Mathieu Pagé
  • 10,764
  • 13
  • 48
  • 71
4
votes
3 answers

MAPISendMail with Outlook sometimes results in winmail.dat

I am using MAPISendMail() in an MFC application, and am having a problem that webmail clients sometimes receive a winmail.dat attachment, instead of the "real" attachments. I have researched a lot, and have found that others are experiencing this…
namezero
  • 2,203
  • 3
  • 24
  • 37
3
votes
3 answers

How to extract TNEF winmail.dat using a PHP script?

I am developing a functionality that will read all emails from a mailbox and will process the attachment files. When any mail is sent from Outlook, its attachment is saved as winmail.dat. [Please note that I already have code to download attachments…
PrincyV
  • 138
  • 1
  • 10
2
votes
1 answer

Odoo: How to process winmail.dat attached in conversations?

We have some customers who uses Microsoft Outlook to send attachments. However in odoo we see only winmail.dat files (while everything looks ok in mail client). Is there any way to force odoo to expose winmail.dat content?
L Kehiky
  • 106
  • 1
  • 8
1
vote
1 answer

How to send MIME email with attachments from Graph SDK? Preventing Graph API from Creating winmail.dat attachment

I'm using graph sdk from c# to send emails from a web app. The body is formatted as HTML. I'm attaching PDFs to the email. The recipients are receiving the email with winmail.dat and sometimes noname. It seems like the email is coming in as plain…
1
vote
2 answers

C#: MailBee: Unload attachments inside a winmail.dat using mailbee's tnef utilities

I am trying to read in emails using mailbee from a gmail inbox. The idea is to take any winmail.dat and extract its attachments and add them to the attachment pool so we don't have to do it manually. MailBee won't recognize the winmail.dat I send…
Venom0us
  • 37
  • 7
1
vote
0 answers

Winmail.dat and PHP script decoding

I am working on a php script that corrects file attachments. One of the cases I need to handle is winmail.dat type. I found this solution, however I have no access to shell and the php environment I am working with is restricted and does not allow…
Luke G
  • 1,741
  • 6
  • 23
  • 34
1
vote
0 answers

How to prevent MS Outlook to send winmail.dat attached in a plain text email?

I'm currently working with a web service which has to reply an email to the customers if some error happens or if the data sent is not in the correct format. I'm using the class MAPIMessage to send mails maked as "unread" in any Microsoft Outlook…
Mauro Bilotti
  • 5,628
  • 4
  • 44
  • 65
1
vote
1 answer

get email attatchment for POP 3 received as winmail.dat

When I try to get attatchment from POP 3 mail, I am getting them as winmail.dat, not the original attached file name. How can I get the original file name? for (int i = 0; i < multipart.getCount(); i++) { BodyPart bodyPart =…
kitokid
  • 3,009
  • 17
  • 65
  • 101
0
votes
0 answers

Is there a way to check the content of a winmail.dat for digital signature with tnefparse in python?

I have created a script on my Postfix server which basically adds a banner to incoming external emails. Currently I'm facing the problem that when the sender sends a digitally signed email from Outlook on prem and has the recipient in his address…
0
votes
0 answers

winmail.dat atttachment parsing in JavaMail library

When we sent a pdf attachment from outlook, while receiving in JavaMail library, we received the attachment as winmail.dat format, how to parse the attachment from winmail.dat in JavaMail library. Tried to parse by using JTNEF library but could not…
0
votes
1 answer

How detect if message body is TNEF format (winmail.dat)?

How detect/check if message body is tnef format (winmail.dat) using PHP? I don't want to decode, just want to check. I using imap_fetchbody and imap_body for get BODY, I need get mimetype (or like) for check if is "tnef format", like this: if…
Protomen
  • 9,471
  • 9
  • 57
  • 124
1
2