为基本问题道歉,但如何使用Smartsheet VB(使用C#)SDK将多个收件人(电子邮件地址)添加到电子邮件对象?
这里的文档,但无法看到如何添加倍数: http://smartsheet-platform.github.io/api-docs/?csharp#email-object
答案 0 :(得分:1)
以下代码示例演示如何使用该电子邮件对象指定两个收件人,构造电子邮件对象以及执行SendSheet
操作。指定收件人和构建电子邮件对象的相同技术可应用于其他发送操作(例如,SendReport
,SendRow
等。)
// Specify recipients
Recipient[] recipients = new Recipient[] {
new Recipient { Email = "john.doe@smartsheet.com" },
new Recipient { Email = "jane.doe@smartsheet.com" }
};
// Configure email
SheetEmail sheetEmail = new SheetEmail {
SendTo = recipients,
Subject = "Check this sheet out!",
Message = "Here's the sheet I mentioned in our meeting.",
CcMe = false,
Format = SheetEmailFormat.PDF,
FormatDetails = new FormatDetails { PaperSize = PaperSize.A4 }
};
// Send sheet via email
smartsheet.SheetResources.SendSheet(SHEET_ID, sheetEmail);