Dela via


Message Encoding Options

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

The content conversion options that you can set in a Microsoft Exchange organization can be described in the following categories:

  • TNEF conversion options   These conversion options specify whether Transport Neutral Encapsulation Format (TNEF) should be preserved or removed from messages that leave the Exchange organization.

  • Message encoding options   These options specify message encoding options, such as MIME and non-MIME character sets, message encoding, and attachment formats.

This topic describes message encoding options that you can specify at the following levels:

  • Remote domain settings

  • Mail user and mail contact settings

  • Microsoft Outlook settings

    • Message format

    • Internet message

    • Internet recipient message format

    • Message character set encoding options

Message Encoding Options for Messages That are Sent to Remote Domains

In Exchange Server 2007, you can set the message encoding options for recipients in remote domains in the Exchange Management Shell or on the Remote Domains tab in the Exchange Management Console. Although the settings are functionally equivalent in the two management interfaces, they may use slightly different terms.

The following table describes the message encoding options that are available for remote domain recipients in the Exchange Management Shell.

Message encoding options for remote domain recipients in the Exchange Management Shell

Source Parameter Description

Set-RemoteDomain

CharacterSet

The character set that you specify will only be used for MIME messages that do not have their own character set specified. Setting this parameter will not overwrite character sets are already specified in the outgoing mail. For a list of valid character set names, see Supported Character Sets for Remote Domain Configuration.

Set-RemoteDomain

ContentType

This parameter specifies the content type for MIME messages sent to recipients in the remote domain. Valid values for this parameter are as follows:

  • MimeHtmlText   Converts messages to MIME messages that use HTML formatting, unless the original message is a text message. If the original message is a text message, outgoing message will be a MIME message that uses text formatting.

  • MimeText   Converts all messages to MIME messages that use text formatting.

  • MimeHtml   Converts all messages to MIME messages that use HTML formatting.

The default value is MimeHtmlText.

Set-RemoteDomain

LineWrapSize

This parameter specifies the maximum number of characters that can exist on a single line of text in the body of the e-mail message. Older e-mail client applications may prefer 78 characters per line.

The valid input range for this parameter is 0 and 132. If you want to remove the characters per line limit, you may set the value of the LineWrapSize parameter to unlimited. By default, the value is unlimited.

Set-RemoteDomain

NonMimeCharacterSet

This parameter is used if the following conditions are true:

  • Incoming messages from a remote domain that are missing the value of the charset= parameter in the MIME Content-Type: header field.

  • Outgoing messages to a remote domain that are missing the value of the MIME character set.

For a list of valid character set names, see Supported Character Sets for Remote Domain Configuration.

The message encoding options that are available for remote domain recipients in the Exchange Management Console are described in the following procedure.

To use the Exchange Management Console to configure the message encoding options for recipients in remote domains

  1. Open the Exchange Management Console.

  2. In the console tree, click Organization Configuration, and then click Hub Transport.

  3. In the result pane, click the Remote Domains tab.

  4. In the result pane, select the remote domain entry that you want to configure. In the action pane, click Properties, and then on the Properties page for that remote domain, click the Message Format tab.

  5. On the Message Format tab, under Message Format Options, select the settings that you want to use for messages sent to this remote domain. The following options are available:

    • Display senders name on messages   The default value is enabled.

    • Use message text line wrap at column   The default value is not specified. This corresponds to a value of unlimited.

    • Character Sets

      - MIME character set:   For the default remote domain, the value is set to match the regional settings of the operating system. For example, Western European (ISO). For user-created remote domains, the default value is None.

      - Non-MIME character set: For the default remote domain, the value is set to match the regional settings of the operating system, for example, Western European (ISO). For user-created remote domains, the default value is None.

  6. Click OK.

Message Encoding Options for Mail Users and Mail Contacts

You must use the Exchange Management Shell to set the message encoding options for mail users and mail contacts.

The following table describes the message encoding options that are available for mail users and mail contacts in the Exchange Management Shell.

Message encoding options for mail users and mail contacts in the Exchange Management Shell

Source Parameter Description

New-MailUser

Set-MailUser

Enable-MailUser

New-MailContact

Set-MailContact

Enable-MailContact

UsePreferMessageFormat

The valid input for this parameter is $true or $false. The default value is $false.

If you set this parameter to $true, the values of the MessageFormat, MessageBodyFormat, and MacAttachmentFormat are used. If you set this parameter to $false, the values of the MessageFormat, MessageBodyFormat, and MacAttachmentFormat are ignored.

When this parameter is set to $false, the recipient message format options are controlled by the following settings:

  • The value of the ContentType parameter that is specified for the remote domain.

  • The sender's settings in Microsoft Office Outlook.

New-MailUser

Set-MailUser

Enable-MailUser

New-MailContact

Set-MailContact

Enable-MailContact

MessageFormat

This parameter specifies the message format for messages that are sent to the mail user or mail contact. The valid values are as follows:

  • Text   The message is composed of only US-ASCII text. The message is not MIME-encoded.

  • Mime   The message is MIME encoded.

If the MessageBodyFormat parameter is set to Text, you can set the MessageFormat parameter to Text or Mime. If the MessageBodyFormat parameter is set to Html or TextAndHtml, you can only set the MessageFormat parameter to Mime.

New-MailUser

Set-MailUser

Enable-MailUser

New-MailContact

Set-MailContact

Enable-MailContact

MessageBodyFormat

This parameter specifies the message body format for messages that are sent to the mail user or mail contact. Valid values for this parameter are as follows:

  • Text   The message body contains only US-ASCII text. The whole message could be plain text or the message could be MIME-encoded with a plain text message body.

  • Html   The message is MIME-encoded with HTML content in the message body.

  • TextAndHtml   The message body is a multipart MIME message that contains both text and HTML representations of the message in different parts.

The default value is TextAndHtml.

If the MessageFormat parameter is set to Text, you can only set the MessageBodyFormat parameter to the value Text. This results in a plain US-ASCII text message as defined in RFC 2822.

If the MessageFormat parameter is set to Mime, you can set the MessageBodyFormat parameter to Text, Html, or TextAndHtml.

New-MailUser

Set-MailUser

Enable-MailUser

New-MailContact

Set-MailContact

Enable-MailContact

MacAttachmentFormat

This parameter specifies the Apple Macintosh Operating System attachment format for messages that are sent to the mail user or mail contact. Valid values for this parameter are as follows:

  • BinHex   This is a binary to hexidecimal attachment encoding algorithm.

  • UuEncode   This is a binary to US-ASCII text attachment encoding algorithm.

  • AppleSingle   This is a file format designed to store "dual forked" files that are compatible with the Apple Unix (A/UX) file system as a single file.

  • AppleDouble   This is a file format designed to store "dual forked" files that are compatible with the Apple Unix (A/UX) file system as two separate files.

The default value is BinHex.

If the MessageFormat parameter is set to Text, you can set the MacAttachmentFormat parameter to BinHex or UuEncode.

If the MessageFormat parameter is set to Mime, you can set the MacAttachmentFormat parameter to BinHex, AppleSingle or AppleDouble.

Message Encoding Options That are Available in Outlook

You can set the default message format for all new messages that you compose to TNEF as described in the following procedure.

To use Outlook 2007 to set the default message format to plain text or HTML

  1. In Microsoft Office Outlook 2007, from the toolbar, click Tools, and then click Options.

  2. Click the Mail Format tab.

  3. In the Message format section, in the Compose messages in this format option, and then select Plain Text or HTML.

  4. Click OK.

Note

In Outlook 2003 and earlier versions of Outlook, the option in step 3 is named Send in this message format.

You can override the default message format for an individual message while you compose the message as described in the following procedure.

To use Outlook 2007 to set the message format to plain text or HTML while you compose the message

  1. In Outlook 2007, select the File menu, select New, and then select Mail Message.

  2. In the new message window, select the Format menu, and then select Plain Text or HTML.

You can specify the message encoding options for messages that are sent to all recipients outside the Exchange organization. These options are called Internet message format options. The options only apply to remote recipients, and not to recipients in the Exchange organization. These options are described in the following procedure.

To use the Outlook 2007 to set the default Internet message format options

  1. In Outlook 2007, from the toolbar, click Tools, and then click Options.

  2. Click the Mail Format tab.

  3. In the Message format section, click Internet Format....

    1. In the Plain text options section, select the default options for plain text messages that are sent to the Internet. The following options are available:

      - Automatically wrap text at nn characters   The default value of the placeholder nn is 76. The valid input range is 30 to 132 characters.

      - Encode attachments in UUENCODE format when you send a plain text message   By default, this option is not selected. Uuencode is an encoding algorithm that converts binary attachments to US-ASCII text in the message body. Uuencode is only available for plain US-ASCII text messages as defined in RFC 2822. MIME-encoded messages can't use Uuencode.

    2. Click OK.

  4. In the Message format section, click International Format....

  5. Click OK.

You can control the message encoding options for messages that are sent to specific recipients outside the Exchange organization. These options are called Internet recipient message format options. The options only apply to remote recipients, and not to recipients in the Exchange organization. These options are described in the following procedure.

To use Outlook 2007 to set the Internet recipient message encoding options

  1. Use one of the following methods

    • For an Internet recipient stored in the Contacts folder, open the contact, right-click the e-mail address in the E-mail... field, and then select Send Options....

    • For Internet recipients on the To:, Cc: or Bcc: fields, as you compose the message, right-click the recipient, and then select Send Options....

  2. Select I want to specify the format for messages to this recipient.

  3. Select one of the following options in the Message Format section:

    • MIME   This option specifies MIME encoding for messages that you send to this recipient. This is the default option. When you select MIME, you must select one of the following options in the Message Body: section:

      - Plain Text   This option specifies that the MIME-encoded message body should use plain text formatting. The message body may only contain unformatted text.

      - Include both Plain Text and HTML   This option specifies that the message is a multipart MIME message that contains a plain text version and an HTML-Formatted version of the message body.

      - HTML   This option specifies that the MIME-encoded message body should use HTML formatting. The message body may contain different fonts, embedded graphics, and other formatting options.

    • Plain Text/UUEncode   This option specifies that the message should be a message composed of only US-ASCII text as specified in RFC 2822. The Uuencode encoding algorithm for is used for any attachments.

      -By default, the BINHEX attachment format for Macintosh files is selected. To force the attachment format for Macintosh files to UUEncode, clear the check box next to BINHEX.

  4. Click OK.

Note

Outlook 2007 doesn't support using Personal Address Book (.pab) files. Outlook 2003 and earlier versions of Outlook fully support .pab files. The previous steps are identical whether the contact is stored in the Contacts folder, or in a .pab file.

By default, Outlook uses automatic character set message encoding by scanning the whole text of the outgoing message to determine the appropriate encoding to use for the message. This setting applies to messages that you send to Internet recipients and recipients in the Exchange organization.

To use Outlook 2007 to set the default message character set encoding

  1. In Outlook 2007, from the toolbar, click Tools, and then click Options.

  2. Click the Mail Format tab.

  3. In the Message format section, click International Options.... In the Encoding Options section, select the default encoding options for outgoing messages. The following options are available:

    • Auto select encoding for outgoing messages   By default, this option is selected. Outlook scans the whole text of the outgoing message to determine the most compatible character set for the message. For automatic encoding selection in Outlook to work correctly, you must make sure that appropriate international support NLS files and fonts are installed on the client computer.

    • Preferred encoding for outgoing messages   This encoding option specifies the default MIME character set for all outgoing messages. This encoding is used when the auto select encoding method is not selected, or when the auto select encoding method finds multiple appropriate encoding methods.

  4. Click OK.

You can override the default character set message encoding for an individual message, but only when you have specified a default preferred encoding for outgoing messages. To override the default character set message encoding while you compose a message as described in the following procedure.

To use Outlook 2007 to set the message character set encoding while you compose a message

  1. In Outlook 2007, from the toolbar, click Tools, and then click Options.

  2. Click the Mail Format tab.

  3. In the Message format section, click International Options.... In the Encoding Options section, clear Auto select encoding for outgoing messages.

  4. Click OK to close the International Options window.

  5. Click OK to close the Options window.

  6. Select the File menu, select New, and then select Mail Message.

  7. In the new message window, select the Encoding menu, and then select the character set that you want to use.

Order of Precedence for Message Encoding Options

Exchange 2007 uses the order of precedence as described in the following list to determine the message encoding options for outgoing messages that are sent to recipients outside the Exchange organization:

  • Remote domain settings

  • Outlook settings

  • Mail user or mail contact settings

The list specifies the order of precedence from lowest to highest. A setting made at a higher level may override a setting made at a lower level.

The following table describes the order of precedence from lowest priority to highest priority for message character set encoding options.

Order of precedence from lowest priority to highest priority for message character set encoding options

Source Parameter Values

Set-RemoteDomain

CharacterSet

Specified

Set-RemoteDomain

NonMimeCharacterSet

Specified

Outlook setting

Message character set encoding

  • Auto-select

  • Specified

Note

The value of the NonMimeCharacterSet parameter from the Set-RemoteDomain cmdlet is used to assign a character set to the following types of messages:
• Outgoing messages to a configured remote domain that don't contain a specified character set
• Incoming messages from a configured remote domain that don't contain a specified character set
The value of the Windows ANSI code page for the Hub Transport server is used to assign a character set to the following types of messages:
• Internal messages that don't contain a specified character set
• Internal messages that contain a specified character set, but don't contain a specified server code page
If a message contains a specified but invalid character set, the Hub Transport server tries to replace the invalid character set with a valid character set.

The following table describes the order of precedence from lowest priority to highest priority for plain text message encoding options.

Order of precedence from lowest priority to highest priority for plain text message encoding options

Source Parameter Values

Set-RemoteDomain

LineWrapSize

  • 0-132

  • unlimited

Outlook settings

Message format

Plain Text

Outlook settings

Internet message format

Plain Text Options:

  • Encode attachments in UUENCODE format when you send a plain text message

  • Automatically wrap text at nn characters

Outlook settings

Internet recipient message format

Plain Text format

  • UUEncode attachment format

  • BINHEX Mac attachment format

  • Uuencode Mac attachment format

Set-MailUser

Set-MailContact

UsePreferMessageFormat

$True. If $False or if the recipient isn't defined as a mail user or mail contact in the Exchange organization, the mail user or mail contact settings are ignored.

Set-MailUser

Set-MailContact

MessageFormat

Text

Set-MailUser

Set-MailContact

MessageBodyFormat

Text

Set-MailUser

Set-MailContact

MacAttachmentFormat

  • BinHex

  • UuEncode

The following table describes the order of precedence from lowest priority to highest priority for MIME message encoding options.

Order of precedence from lowest priority to highest priority for MIME message encoding options

Source Parameter Values

Set-RemoteDomain

ContentType

  • MimeHtmlText

  • MimeText

  • MimeHtml

Outlook settings

Message format

  • Plain Text

  • HTML

Outlook settings

Internet recipient message format

MIME message format

  • Plain Text

  • Include both Plain Text and HTML

  • HTML

Set-MailUser

Set-MailContact

UsePreferMessageFormat

$True. If $False or if the recipient isn't defined as a mail user or mail contact in the Exchange organization, the mail user or mail contact settings are ignored.

Set-MailUser

Set-MailContact

MessageFormat

Mime

Set-MailUser

Set-MailContact

MessageBodyFormat

  • Text

  • HTML

  • TextandHTML

Set-MailUser

Set-MailContact

MacAttachmentFormat

  • BinHex

  • AppleSingle

  • AppleDouble

For More Information

For more information, see the following topics: