Email Alert Settings in Team Foundation Server 2010

Objective:

Microsoft Team Foundation Server is the great utility used by thousands of the developers and organizations throughout the world for development collaboration file management and build automations. In this blog we will learn how to configure Email Alert for check-in, checkout, build status (failed, succeeded) etc.

Requirements:

Properly configured and running Microsoft Team Foundation Server.
Properly configured and running SMTP server i.e. SMTP.YOURDOMAIN.COM.
Valid Email address for receiving the alerts.

Configuration Steps:
  • Open Team Foundation Server 2010 Console.
  • Select Application Tier.
  • And Then Email Alert Settings.
  • Open VSTS 2010 and then select Team Project.
  • Right click on the project and go to project alert.
  • Select on which task you need email alert and then select type your email account where you want emails.
Required Permissions:
To perform this procedure, you must be a member of the Administrators group on the Team Foundation application-tier server.

 

Change the SMTP Server for sending email alerts:
  1. On the application-tier server for Team Foundation, locate the installation directory for the application tier.
  2. Open the Web Services directory, and then open the Services subdirectory.
  3. In a text or XML editor, open the Web.Config file, and locate the <add key=”smtpServer”> element.
  4. Update the element by typing the fully qualified domain name of the SMTP server. For example, type the following string:
    <add key=”smtpServer” value=”SMTPServerLocation” />
  5. Save and close the Web.Config file.

You must close and restart the Web services application for Team Foundation before your changes will take effect.

Change the sender email address for email alerts:
  1. On the application-tier server for Team Foundation, locate the installation directory for the application tier.
  2. Open the Web Services directory, and then open the Services subdirectory.
  3. In a text or XML editor, open the Web.Config file, and locate the <add key=”emailNotificationFromAddress”> element.
  4. Update the element by typing the e-mail address that is associated with the service account (for example, Domain/TFSService). that is used for the application pool identity for Team Foundation. For example, type the following string:
    <add key=”emailNotificationFromAddress” value=”TFS@yourdomainname.com” />
  5. Save and close the file.

You must close and restart the Web services application for Team Foundation before your changes will take effect.

Leave a comment