crossvertise / ActionMailerNext

Fork of ActionMailer.Net, A easy to use library to generate emails with razor views
MIT License
42 stars 24 forks source link

Broken body encoding #10

Open andreysolovyov opened 9 years ago

andreysolovyov commented 9 years ago

Hello!

When I and trying to send mail with cyrillic characters, I am getting email with broken body encoding: мЮ ЯЮИРЕ АШКЮ НЯРЮБКЕМЮ МНБЮЪ But it should be "На сайте была оставлена новая заявка".

Subject of the mail encoded correctly.

I am using VS 2013, MVC5.

Alexander-Taran commented 7 years ago
 public EmailController()
        {
            this.MailAttributes = new ActionMailerNext.MailAttributes()
            {
                MessageEncoding = System.Text.Encoding.UTF8
            };            
        }