DefaultCharSet
Define Content-Type: character set V8.7 and later
When a mail message is converted from 8 to 7 bits (see
the EightBitMode
option in EightBitMode on page
1025), it is important that the result look like a
MIME message. V8.7 and later
sendmail first outputs the
following header if one is not already
present:
MIME-Version: 1.0
After that, sendmail looks for a
Content-Type:
header (Content-Type: on page
1154). If none is found, the following is inserted,
where dfltchset is the
value declared for this option:
Content-Type: text/plain; charset=dfltchsetThe forms of the DefaultCharSet option are as
follows:
O DefaultCharSet=dfltchset ← configuration file (V8.7 and later) -ODefaultCharSet=dfltchset ← command line (V8.7 and later) define(`confDEF_CHAR_SET',dfltchset) ← mc configuration (V8.7 and later)
If the DefaultCharSet option is undefined,
dfltchset defaults to
the string unknown-8bit. The default for the
mc technique is to omit this
option.
Note that if the C=
equate (C= on page 741) is
present for the sender’s delivery agent, that
character set supersedes this DefaultCharSet.
The DefaultCharSet
option is safe. If specified from the command line,
sendmail will not relinquish
its special privileges.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access