php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Base64 content of attachments are corrupted with diamond question marks

Open shahmirerror opened this issue 3 years ago • 2 comments

Describe the bug The email Attachments I fetch, the content of the attachments are corrupted and not recognized as a base64 string.

Screenshot Screenshot (7)

Desktop / Server (please complete the following information):

  • OS: Windows 11
  • PHP: 7.4.26
  • Provider : Outlook

shahmirerror avatar Feb 24 '22 12:02 shahmirerror

Hi @shahmirerror,

are you sure that the attachment is encoded as base64? Microsoft Outlook uses its own file format (TNEF) for attachments. The attachments are then called winmail.dat.

HelloSebastian avatar Feb 24 '22 17:02 HelloSebastian

Hi @shahmirerror , unfortunately TNEF isn't currently supported. A feature request to support TNEF can be found here: #21

Please take a look at the content-type. If it isn't some kind of TNEF, please share an anonymized version (remove all sensible data such as mail addresses, phone numbers, etc) if possible.

Best regards,

Webklex avatar Mar 08 '22 13:03 Webklex