h = actxserver('outlook.Application');
    outlookSpace = h.GetNamespace("MAPI");
    % Item 6 is for the inbox folder.
    inboxFolder = outlookSpace.GetDefaultFolder(6);
    items = inboxFolder.Items;
    % Read the first email
    mailText = items.GetFirst().Body;  