I get error in Message.Body.BodyType while sending email: you must load or assign this property before you can read its value
if (service != null)
{
Microsoft.Exchange.WebServices.Data.EmailMessage message = new Microsoft.Exchange.WebServices.Data.EmailMessage(service);
message.Subject = SendMail.Subject;
if (SendMail.IsHtml)
{
message.Body.BodyType = Microsoft.Exchange.WebServices.Data.BodyType.HTML;
message.Body = new Microsoft.Exchange.WebServices.Data.MessageBody(SendMail.Html);
}
}