views:

50

answers:

1

I have created a Sharepoint custom Sequential workflow. I have to use the SendEmail activity to send an alert at various steps. I tried the following code:

        this.sendalertEmail.To = "[email protected]";

        this.sendalertEmail.From = "[email protected]";

        this.sendalertEmail.Subject = "Regarding email";

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

i have configured teh outgoing settings in my server with Smtp server and other details.

it says "The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly." please help

A: 

Are you sure SMTP is setup correctly and that your smtp server is allowing relay?

Send some test emails using a tool like the SMTP Test Tool or Telnet on your SharePoint servers to send some test emails.

Ryan