Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes how Microsoft 365 admins can change the message format so that messages that are sent from Microsoft 365 users to external recipients don't contain Winmail.dat attachments.
By default, email messages that are sent from Exchange Online in Microsoft 365 use the Transport Neutral Encapsulation Format (TNEF) format. Messaging systems that aren't based on Microsoft Exchange may be unable to interpret messages that use this rich text format. If the recipient's messaging system can't process this format, a file attachment that's called Winmail.dat is added to the message.
Microsoft 365 admins can use Windows PowerShell to change the message format to prevent the Winmail.dat attachment from being sent to external recipients.
To change the message format to prevent Winmail.dat attachments, use one of the following methods.
To change the message format for an external contact that was added to Exchange Online, follow these steps:
Run the following Windows PowerShell commands to configure the message format as Text Only:
Set-MailContact <ExternalEmailAddress or GUID> -UseMapiRichTextFormat Never Set-MailContact -Identity <ExternalEmailAddress or GUID> -UsePreferMessageFormat $True
Run the following Windows PowerShell command to confirm that the message format was applied:
Get-MailContact | Select <ExternalEmailAddress or GUID> | Select UseMapiRichTextFormat
This method requires you to create a remote domain object in Exchange Online to control how messages are sent to external domains. You can also use this method to change the message format for messages that are sent to coexistence domains.
Run the following Windows PowerShell command to create a remote domain for an external domain:
New-RemoteDomain -Name <Name of External Domain> -DomainName domain.com
Run the following Windows PowerShell command to prevent messages from being sent in rich text format:
Set-RemoteDomain -Identity <Name of Domain> -TNEFEnabled $false
Run the following WindowsPowerShell command to check that the setting was applied:
Get-RemoteDomain -Identity <Name of Domain>| Select TNEFEnabled
For more information about specific Windows PowerShell cmdlets, go to the following Microsoft websites:
Still need help? Go to Microsoft Community.