mikedilger / email-format

Email data structure and builder for streaming emails
Apache License 2.0
17 stars 5 forks source link

Using umlauts #18

Closed flosse closed 7 years ago

flosse commented 7 years ago

How can I create an eMail with umlauts? Using them causes InvalidInput, error: Trailing input at byte :(

mikedilger commented 7 years ago

Internet mail was originally limited to 7-bit ASCII. MIME added support for the use of 8-bit character sets in body parts.

This crate handles the lower 7-bit ASCII layer. You can compose a MIME message with another crate such as https://github.com/mikedilger/mime-multipart and use that as the body (and some of the headers).

mikedilger commented 7 years ago

I've updated the README to show how you can use MIME with this crate.

mikedilger commented 7 years ago

Bah, it's not working. mime_multipart needs work.

edited: Or something else. I may support content-transfer-encoding and encode the body thusly, e.g. quoted-printable or base64.

flosse commented 7 years ago

Tanks! In the meantime I just created my mail manually using format! and the quoted_printable crate ;-)

mikedilger commented 7 years ago

Sweet. #19 tracks this issue now for this crate. I do plan to supply something better eventually.