This project is read-only.

Error when sending Email with Unicode and file attachment

Aug 24, 2012 at 4:09 AM

I use dll and I occur error to send email. I decide to use source code class library and send successfully. But there are some problems with unicode. Unicode subject is not encoded. When I send a file, it appears subpart error.

Can you fix these problem?

            message.Subject = "Giao diện chung";
            message.BodyHtml = new MimeBody(BodyFormat.Html);
            message.BodyHtml.Charset = "utf-8";
            message.BodyHtml.Text = Server.HtmlDecode(form["BodyContent"]);
            message.Date = DateTime.Now;
            message.IsHtml = true;