From 55ff296fee5e98273f566611980dc9f9f474ab11 Mon Sep 17 00:00:00 2001 From: Yet371 <41476624+Yet371@users.noreply.github.com> Date: Fri, 24 Jan 2025 09:19:14 +0300 Subject: [PATCH] Close boundary if mail does not have html body --- AegisImplictMail/SmtpSocketClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AegisImplictMail/SmtpSocketClient.cs b/AegisImplictMail/SmtpSocketClient.cs index 4c76a48..3a77ddc 100644 --- a/AegisImplictMail/SmtpSocketClient.cs +++ b/AegisImplictMail/SmtpSocketClient.cs @@ -991,7 +991,7 @@ private void SendMessageBody(StringBuilder buf) } //finish up message _con.SendCommand(""); - if (MimeAttachment.InlineCount > 0 || MimeAttachment.AttachCount > 0) + if (!MailMessage.IsBodyHtml || MimeAttachment.InlineCount > 0 || MimeAttachment.AttachCount > 0) { _con.SendCommand("--#SEPERATOR1#--"); }