使用Visual Studio 2008不发送电子邮件的Sharepoint Custom Sequential工作流程

时间:2010-08-10 15:02:08

标签: visual-studio-2008 sharepoint email workflow

我创建了一个Sharepoint自定义顺序工作流程。我必须使用SendEmail活动在各个步骤发送警报。我尝试了以下代码:

        this.sendalertEmail.To = "somebody@somwhere.com";

        this.sendalertEmail.From = "somebody@somwhere.com";

        this.sendalertEmail.Subject = "Regarding email";

        this.sendalertEmail.Body = @"This is an automated email <b>response</b>";

我已使用Smtp服务器和其他详细信息在我的服务器中配置了传出设置。

它说“无法发送电子邮件。请确保正确配置服务器的传出电子邮件设置。”请帮忙

1 个答案:

答案 0 :(得分:0)

您确定SMTP已正确设置且您的smtp服务器是否允许中继?

使用SharePoint服务器上的SMTP Test ToolTelnet等工具发送一些测试电子邮件,以发送一些测试电子邮件。