Subject field has wrong encoding if you set next value - "Инвойс со складами №0-ИнвСкл-00000007 от 18.06.2018" If you download and compile sources the error will not go away. For me helped another solution. I use "Convert.ToBase64String" with one parameter instead of "TransferEncoder.ToBase64'" in GetEncodedSubject function. private string GetEncodedSubject() { if (MailMessage.SubjectEncoding.Equals(Encoding.ASCII)) { return MailMessage.Subject; } else { var encodingName = MailMessage.SubjectEncoding.BodyName.ToLower();...
Subject field has wrong encoding if you set next value - "Инвойс со складами №0-ИнвСкл-00000007 от 18.06.2018" If you download and compile sources the error will not go away. For me helped another solution. I use "Convert.ToBase64String" with one parameter instead of "TransferEncoder.ToBase64'" in GetEncodedSubject function. private string GetEncodedSubject() { if (MailMessage.SubjectEncoding.Equals(Encoding.ASCII)) { return MailMessage.Subject; } else { var encodingName = MailMessage.SubjectEncoding.BodyName.ToLower();...