Send an Email with Project Automation

How to send an email when a DS3 project is finished without using DS3 Server

Step 1: Enable Project Automation on the project Automation Tab and past in the sample code

You simply implement the End method of the Automation Class and send an SMTP Email message like this.

public override void End(ProjectAutomationResult result)
        if ( result.Success && result.HasChanges ) 
            var smtpClient = new System.Net.Mail.SmtpClient("", 587);
            smtpClient.EnableSsl = true;
            smtpClient.Credentials = new System.Net.NetworkCredential("username", "password");
            //Message to Send
           string message = string.Format("New {0}, Updated {1}, Deleted {2}", 
           //Send Message
            smtpClient.Send("", "", "Synchronisation Result", message);                                                    

Can't find the answers you're looking for? Contact our support team and we'll personally get back to you as quickly as we can.