Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I configure charset in sendmail?

Status
Not open for further replies.

FelipeGar

Technical User
Apr 30, 2009
1
ES
Hallo:

I'm trying to send a mail with special characters (spanish characters: áéíóñÑ).

If I send it from Outlook, a tag in header is added with:
Content-Type: text/plain; charset="iso-8859-1"
and its displayed fine in Outlook and Kontact.

If I send it form Kontact, a tag in header is added with:
Content-Type: text/plain; charset="utf-8"
and its displayed fine in Outlook and Kontact.

But if I send it from command line, with:
echo "Message áéíóúñÑ­" | mail -s "Test" user@dom.com

No tag header is included and it's displayed wrong in Kontact and Outlook.

Tryied with
O DefaultCharSet=iso-8859-1
and
O DefaultCharSet=utf-8
in sendmail.cf and restarted service but no tag added.


Please, can you tell me how to configure sendmail to add a header to specify charset?

Thanks

Felipe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top