You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create mail,using MimeKit.BodyBuilder class like this:
var mail = new MailMessage();
mail.To.Add(new MailboxAddress("name1","[email protected]");
mail.From.Add(new MailboxAddress("name2","[email protected]");
var builder = new BodyBuilder();
builder.textBody = "";
buider.Attachments.Add(file);
mail.body = builder.ToMessageBody();
when I send this mail, iff attached file is of Text/Plain, then it's content is showing up in the body also. Note this problem doesn't occur when the attachment is xml,json,etc.
Please, point out the problem.
The text was updated successfully, but these errors were encountered:
I am trying to create mail,using MimeKit.BodyBuilder class like this:
when I send this mail, iff attached file is of Text/Plain, then it's content is showing up in the body also. Note this problem doesn't occur when the attachment is xml,json,etc.
Please, point out the problem.
The text was updated successfully, but these errors were encountered: