weaver / node-mail

This SMTP client library for Node.JS helps you send email safely and easily.
113 stars 17 forks source link

Error for body has non-ascii charecters. #7

Closed katoy closed 13 years ago

katoy commented 13 years ago

Tring sending Japanese mail, I got the error "Data must be 7-bit ASCII.' It causes in ClientTransaction.prototype.write = function(data). Comment-outed the checking 7bit, I can send the mail.

Do you have better ways for non-ascii char in body? // Also I need the solution for non-ascii in subject.

weaver commented 13 years ago

Hi katoy,

That error is there to remind me to implement proper MIME support sometime. Based on 8BITMIME it seems fine to comment out that line as a workaround. I'll keep this ticket open until there's a proper fix.

Thanks!

weaver commented 13 years ago

Hey katoy,

I pushed an update for node-mail today so it works with Node 0.4.x. I've also added support for RFC-6152 (8-bit mime transport) which should solve this problem.

Thanks!

katoy commented 13 years ago

Thank, it works fine.