2014-09-04 52 views
0

我无法在预览API或Microsoft.Office365.Exchange命名空间中找到任何内容来创建自定义标头或获取现有标头。这是我的代码创建电子邮件和收件人。如何使用Office365预览API添加自定义邮件标头

//Create the new Message with the Office365 API and save it to the Drafts folder 
var client = await EnsureClientCreated(); 
var o365Message = new Microsoft.Office365.Exchange.Message();    
string subject = "Test subject"; 
o365Message.Subject = subject; 
o365Message.Body = new ItemBody() { Content = "Test", ContentType = BodyType.Text }; 
messageModel.Subject = subject; 
var recip = new Recipient(); 
recip.Address = "[email protected]"; 
o365Message.ToRecipients.Add(recip); 
await client.Me.Drafts.Messages.AddMessageAsync(o365Message, false); 

THX,

回答

1

这现在是不是可以从服务。我在metadata文档中看不到关于邮件标题的任何内容。请使用UserVoice来申请此功能。

+0

谢谢迈克尔。我会在今天完成UserVoice请求。 – 2014-09-05 19:24:17

相关问题