login about faq

Hi, How could I send a 8BITMIME message with MailMan? Thanks

asked Apr 15 '14 at 18:04

alex20021010's gravatar image

alex20021010
125


The answer is Yes, but you'll need to be more specific as to exactly what you need.

Do you need the content-transfer-encoding of an attachment to be "8bit" instead of "base64"? Or... do you need the content-transfer-encoding of the plain-text and/or HTML bodies to be "8bit"?

If an attachment with binary (non-text) data is to use 8bit, then you cannot handle the MIME as a string -- you can only handle it as a byte array -- because the binary bytes do not represent characters. To handle the MIME as a string in your program, binary data would need to be encoded in a string representable form such as Base64 or Quoted-Printable.

If a plain-text or HTML body is to be 8bit, you can still handle the MIME as a string, but the string, if written to a file (such as a .eml) would need to be written using the correct character encoding (utf-8, iso-8859-1, etc.). When a plain-text or HTML body is Base64 or Quoted-Printable, there are no such worries because every character in the MIME is us-ascii.

link

answered Apr 16 '14 at 10:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×184
×80
×47
×1

Asked: Apr 15 '14 at 18:04

Seen: 908 times

Last updated: Apr 16 '14 at 10:37

powered by OSQA