@Shital_diwate,
I have checked the code again in the OnBehalfOf.zip in the post here. If we look at the code, we see the commented code which is of main concern to us. Could you please send us exact code which you used for your testing? Following is the function where code is commented.
private bool SaveMAil()
{
// mailmessageObj = new MailMessage();
mailmessageObj = MailMessage.Load(@"C:\Temp\Attachment.msg", new MsgLoadOptions());
mailmessageObj.Subject = "Test Mail";
mailmessageObj.Body = "TEST";
MailAddress Fromaddress = new Aspose.Email.MailAddress("test@gmail.com", true);
Fromaddress.DisplayName = "Test";
mailmessageObj.From = Fromaddress;
mailmessageObj.To = "test1@gmail.com";
mapimessageObj = MapiMessage.FromMailMessage(mailmessageObj, MapiConversionOptions.UnicodeFormat);
// FollowUpOptions option = new FollowUpOptions("Follow up", DateTime.Today, DateTime.Today.AddDays(3), DateTime.Today.AddDays(1));
// FollowUpManager.SetOptions(mapimessageObj, option);
// FollowUpManager.SetFlag(mapimessageObj, "Follow up", DateTime.Today, DateTime.Today.AddDays(3));
mapimessageObj.SetMessageFlags((mapimessageObj.Flags & ~MapiMessageFlags.MSGFLAG_UNSENT));
folderInfoObj.AddMessage(mapimessageObj);
return true;
}