Code: Select all
This code give me error " failed to resolve path relative to node /okm:mail/viral: empty path". Can you help me?OKMMail.mail obj = new MetroDMSWebAPI.OKMMail.mail();
OKMMail.OKMMailService obj1;
OKMRepository.OKMRepositoryService okmRepositoryService;
try
{
obj.bcc = new string[] { "abc@abc.com" };
obj.cc = new string[] { "xyz@xyz.com" };
obj.content = "Hi this is my first mail and this is the contact of mail.";
obj.from = "pqr@pqr.com";
obj.path = "/okm:mail/viral/";
obj.receivedDate = DateTime.Now;
obj.sentDate = DateTime.Now;
obj.size = 10;
obj.subject = "subject";
obj.to = new string[] { "lmn@lmn.com" };
obj1 = new MetroDMSWebAPI.OKMMail.OKMMailService();
obj1.create(txtToken.Text, obj);
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}