Exemplo n.º 1
0
        public IMailItem NewMailItem()
        {
            var body = new MailItemProviderHTTP.ItemBody
            {
                Content = "New Body",
                ContentType = "HTML"
            };

            var message = new MailItemProviderHTTP.Message
            {
                Subject = "New Subject",
                Body = body,
                ToRecipients = new List<MailItemProviderHTTP.Recipient>(),
                Importance = "High"
            };

            // Save the draft message.
            var newMessage = HttpUtilSync.PostItem("Messages", message);

            return new MailItemProviderHTTP(newMessage);
        }
Exemplo n.º 2
0
        public IMailItem NewMailItem()
        {
            var body = new MailItemProviderHTTP.ItemBody
            {
                Content     = "New Body",
                ContentType = "HTML"
            };

            var message = new MailItemProviderHTTP.Message
            {
                Subject      = "New Subject",
                Body         = body,
                ToRecipients = new List <MailItemProviderHTTP.Recipient>(),
                Importance   = "High"
            };

            // Save the draft message.
            var newMessage = HttpUtilSync.PostItem("Messages", message);

            return(new MailItemProviderHTTP(newMessage));
        }