dmcgiv / DKIM.Net

DomainKeys Identified Mail (DKIM) and DomainKey email signing for .Net (C#)
30 stars 9 forks source link

Dkim verification fails #10

Open unosbaghaie opened 8 years ago

unosbaghaie commented 8 years ago

Hi I sign System.Net.Mail.MailMessage using DKIM.Net . When subject and body are English text. Dkim is being passed but when subject or body is Farsi Dkim fails . I set encoding as below

MyMessage.SubjectEncoding = Encoding.UTF8; MyMessage.BodyEncoding = Encoding.UTF8;

but it doesn't work . Any clue or hint to solve it Thanks

rgustavsson commented 7 years ago

I have the same problem. When I include Swedish letters (å,ä,ö) in the subject it fails. Would be very happy for a solution.

jstedfast commented 5 years ago

For anyone having this issue, I would recommend using MimeKit's DKIM support instead.

If you also need SMTP functionality to send the resulting message, you can use MimeKit with MailKit (since you won't be able to use MimeKit with System.Net.Mail.SmtpClient).

Hopefully Damien doesn't mind me making this suggestion since it appears that he is no longer maintaining this library.