Im trying to DKIM sign all my emails using MIMEKIT and it works flawless for email body of smaller lenght but when content/size of email body increases., DKIM fails. Im generating the body using "BodyBuilder".
The following are my doubts in MIMEKIT
Is there any limitation in body/content length?. Is it Mandatory to give both text and html format of the content for DKIM sign?
Below is my code for reference:
var message = new MimeMessage();
message.From.Add(new MailboxAddress("Sender", "[email protected]"));
message.To.Add(new MailboxAddress("Mr K", ""[email protected]"));
message.Subject = "Hi";
message.Sender = new MailboxAddress("realsender", "[email protected]");
message.InReplyTo = "[email protected]";
var builder = new BodyBuilder();
builder.TextBody = strbodytxt;
builder.HtmlBody = strbody;
builder.Attachments.Add(strattachmentpath);
message.Body = builder.ToMessageBody();