【问题标题】:SharePoint Online provider host Send Email - Access deniedSharePoint Online 提供程序主机发送电子邮件 - 访问被拒绝
【发布时间】:2017-10-14 02:58:07
【问题描述】:

我正在使用 CSOM 开发 SharePoint 提供程序托管的加载项,并且在使用以下方式发送电子邮件时访问被拒绝:

EmailProperties emailProperties = new EmailProperties();
emailProperties.To = emailAddresses;
emailProperties.From = "no-reply@sharepointonline.com";
emailProperties.Body = @"XXXXX";
emailProperties.Subject = viagem.Title;

Utility.SendEmail(context, emailProperties);
context.ExecuteQuery();

[ServerUnauthorizedAccessException:访问被拒绝。你没有 执行此操作或访问此资源的权限。]
Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(流 响应流)+2911
Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() +1564

该应用已经拥有一些权限:

<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" />
<AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Read" />
<AppPermissionRequest Scope="http://sharepoint/bcs/connection" Right="Read" />

我有两个问题:

1- 我需要添加哪些权限?

2- 我正在尝试使用“no-reply@sharepointonline.com”作为发件人,因为这是工作流中用作发件人的地址。 任何人都知道 SharePoint Online 中电子邮件的默认电子邮件是什么?

谢谢

【问题讨论】:

    标签: email permissions sharepoint-online csom sharepoint-addin


    【解决方案1】:

    解决它。

    1 - 网站集权限。

    2 - 我可以使用“no-reply@sharepointonline.com”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-21
      • 1970-01-01
      • 2018-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-29
      相关资源
      最近更新 更多