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.
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.
- 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.
- On the application-tier server for Team Foundation, locate the installation directory for the application tier.
- Open the Web Services directory, and then open the Services subdirectory.
- In a text or XML editor, open the Web.Config file, and locate the <add key=”smtpServer”> element.
- 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” /> - 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.
- On the application-tier server for Team Foundation, locate the installation directory for the application tier.
- Open the Web Services directory, and then open the Services subdirectory.
- In a text or XML editor, open the Web.Config file, and locate the <add key=”emailNotificationFromAddress”> element.
- 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” /> - Save and close the file.
You must close and restart the Web services application for Team Foundation before your changes will take effect.