Attachment filename not en/de-coded correctly when longer than 13 characters

前端 未结 1 755
北恋
北恋 2021-01-20 17:21

I am using the following code to send an email attachment. I\'m using C#, .NET 4.0, BPOS Exchange server to send.

var message = new MailMessage(\"duncanba         


        
相关标签:
1条回答
  • 2021-01-20 17:47

    Turns out that this is a known issue, & Microsoft has issued a hotfix. See: An email message attachment name that contains non-ASCII characters and is longer than 41 UTF-8 encoded bytes is encoded two times before transmission in an application that is compiled for the .NET Framework 4.

    0 讨论(0)
提交回复
热议问题