+2 votes

i use the code to create a Reply from a mail but the reply doesn't contain the attachements.
how i solv the problem?


1 Answer

0 votes
Best answer

Use ReplyBuilder.IncludeAttachments property, by default it is set to false, so no attachments are send back in the reply email:

IMail original = ...    
ReplyBuilder replyBuilder = original.Reply();

replyBuilder.IncludeAttachments = true;

MailBuilder builder = replyBuilder.Reply(new MailBox("me@example.com"));
IMail replied = builder.Create();
by (298k points)
selected by