2

我想在 Sharepoint 中在线发送电子邮件。我使用以下方法使用事件接收器发送邮件。

 SPUtility.SendEmail(SPContext.Current.Web, headers, bodyText.ToString());

但它不适用于 sharepoint online 2013。阅读文章后,我知道无法使用 SPUtility 方法。请为我提供通过事件接收器发送邮件的解决方案。我将其创建为沙盒解决方案。

我们可以使用 Microsoft Exchange Server 吗?我该如何使用它?

感谢您的帮助!

4

2 回答 2

1

You could use a workaround by leveraging the SendMail activity in a workflow. This is also explained here: Guru Tip: Sending an Email in Office 365.

Unfortunately using this workflow workaround will be your only choice as both SPUtility.SendEmail as well as System.Net.Mail.SmtpClient are not allowed in Sandboxed solutions which is also explained in this post: Send email via code in Office365

于 2013-11-05T16:21:05.847 回答
0

如何将电子邮件或部分电子邮件数据导入 Sharepoint 库或 Sharepoint 列表,您可以在“从邮箱到 Sharepoint 的智能方式”中找到。它适用于在线 Sharepoint。

于 2014-01-02T07:10:33.707 回答