How to reply a message with Outlook Live

In order to use this code you will need to get the GetBinding() method and understand how to get a message item UniqueId

 /// <summary>
/// Replies the message.
/// </summary>
/// <param name="messId">The mess id.</param>
/// <param name="body">The body.</param>
/// <param name="replyAll">if set to <c>true</c> [reply all].</param>
/// <returns></returns>
public static bool ReplyMessage(string messId, string body, bool replyAll)
	Item mess = Item.Bind(GetBinding(), messId);
	EmailMessage message = mess as EmailMessage;
	if (message != null)
		MessageBody messageBody = new MessageBody(BodyType.HTML, body);
		message.Reply(messageBody, replyAll);
		return true;
	return false;

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s