Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How can I configure charset in sendmail?

How can I configure charset in sendmail?

How can I configure charset in sendmail?


 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
   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?



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close